From 0cb2833d7210bd6e4ce492a3525ee74dc2057aac Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 10 Jun 2025 17:01:16 -0500 Subject: Pass on the publication to the next job. --- scripts/load_phenotypes_to_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/load_phenotypes_to_db.py b/scripts/load_phenotypes_to_db.py index 8339ea9..8f49e10 100644 --- a/scripts/load_phenotypes_to_db.py +++ b/scripts/load_phenotypes_to_db.py @@ -358,7 +358,7 @@ def load_data(conn: mysqldb.Connection, job: dict) -> int: int(_job_metadata["dataset_id"])) # 1. Just retrive the publication: Don't create publications for now. _publication = fetch_publication_by_id( - conn, int(_job_metadata.get("publicationid", "0"))) or {"Id": 0} + conn, int(_job_metadata.get("publication_id", "0"))) or {"Id": 0} # 2. Save all new phenotypes: # -> return phenotype IDs bundle = Path(_job_metadata["bundle_file"]) -- cgit v1.2.3