Skip to content

Commit

Permalink
move ddb env var
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Apr 2, 2024
1 parent ef63a16 commit 6c6f665
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/metakb/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,16 @@ async def update_metakb_db(
"Error: Can only use one of `--load_latest_cdms`, `--load_target_cdm`, `--load_latest_s3_cdms`."
)

if normalizers_db_url:
for env_var_name in [
"GENE_NORM_DB_URL",
"THERAPY_NORM_DB_URL",
"DISEASE_NORM_DB_URL",
]:
environ[env_var_name] = normalizers_db_url

if not any([load_latest_cdms, load_target_cdm, load_latest_s3_cdms]):
if force_load_normalizers_db:
if normalizers_db_url:
for env_var_name in [
"GENE_NORM_DB_URL",
"THERAPY_NORM_DB_URL",
"DISEASE_NORM_DB_URL",
]:
environ[env_var_name] = normalizers_db_url

_load_normalizers_db()

_harvest_sources(update_cached)
Expand Down

0 comments on commit 6c6f665

Please sign in to comment.