Skip to content

Commit

Permalink
add a bit more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
edeutsch committed Aug 2, 2023
1 parent 652cac9 commit 06d8b05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/ARAX/ARAXQuery/ARAX_database_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def __init__(self):
}

def update_databases(self, debug = True, response = None):
debug = True
# First ensure we have a db versions file if we're in a docker container (since host has dbs predownloaded)
if os.path.exists(self.docker_databases_dir_path) and not os.path.exists(versions_path):
self.write_db_versions_file(debug=True)
Expand Down Expand Up @@ -285,6 +286,8 @@ def get_docker_path(self, database_shortname: str) -> str:
return f"{self.docker_databases_dir_path}/{database_subpath}"

def check_versions(self, debug=True):
debug = True
eprint("ARAX_database_manager is performing check_versions()")
download_flag = False
if os.path.exists(versions_path):
with open(versions_path,"r") as fid:
Expand All @@ -307,7 +310,7 @@ def check_versions(self, debug=True):
eprint(f"Local version of {database_name} matches the remote version")
else:
if debug:
eprint("No local verson json file present")
eprint("No local version {versions_path}")
download_flag = True
return download_flag

Expand Down

0 comments on commit 06d8b05

Please sign in to comment.