diff options
author | Frederick Muriuki Muriithi | 2025-05-28 16:59:52 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-05-28 16:59:52 -0500 |
commit | 3e226164ca02cbf56704672ca9549bf1cd9dd349 (patch) | |
tree | c784fc542e915d7616964e7393f875766309bb51 | |
parent | 64e9ae85aa5c46c86c63f5785395f6ce851851b8 (diff) | |
download | gn-uploader-3e226164ca02cbf56704672ca9549bf1cd9dd349.tar.gz |
Bug: Fix actual data value, not result set.
-rw-r--r-- | scripts/load_phenotypes_to_db.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/load_phenotypes_to_db.py b/scripts/load_phenotypes_to_db.py index a66ccd4..3a0df77 100644 --- a/scripts/load_phenotypes_to_db.py +++ b/scripts/load_phenotypes_to_db.py @@ -69,7 +69,7 @@ def __fetch_next_dataid__(conn: mysqldb.Connection) -> int: with conn.cursor(cursorclass=DictCursor) as cursor: cursor.execute( "SELECT MAX(DataId) AS CurrentMaxDataId FROM PublishXRef") - return int(cursor.fetchone()) + 1 + return int(cursor.fetchone()["CurrentMaxDataId"]) + 1 def save_pheno_data( |