diff options
author | Frederick Muriuki Muriithi | 2025-05-19 10:47:30 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-05-19 10:47:30 -0500 |
commit | 51b055471da3fdd6d4ae83f448ed6460d1402bed (patch) | |
tree | f98bf77202d7c77795b8c71eff85a33d2d6c64a7 | |
parent | 672debb68ad649756735adef64071327f38cbb8c (diff) | |
download | gn-uploader-51b055471da3fdd6d4ae83f448ed6460d1402bed.tar.gz |
Cleanup function call.
-rw-r--r-- | scripts/load_phenotypes_to_db.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scripts/load_phenotypes_to_db.py b/scripts/load_phenotypes_to_db.py index e6623fe..378497f 100644 --- a/scripts/load_phenotypes_to_db.py +++ b/scripts/load_phenotypes_to_db.py @@ -124,12 +124,11 @@ def load_data(conn, job): } # 2. Save any new publications (in multi-file bundle): # -> return publication IDS - publications = publications + save_publications( - cursor, - _control_data.get( - "metadata", {}).get( - "publications"), - _job_metadata.get("publicationid")) + publications = save_publications(cursor, + _control_data.get( + "metadata", {}).get( + "publications"), + _job_metadata.get("publicationid")) _pubidmap = { # TODO: Map the pheno ids to the publication ids } |