aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-05-28 16:59:52 -0500
committerFrederick Muriuki Muriithi2025-05-28 16:59:52 -0500
commit3e226164ca02cbf56704672ca9549bf1cd9dd349 (patch)
treec784fc542e915d7616964e7393f875766309bb51
parent64e9ae85aa5c46c86c63f5785395f6ce851851b8 (diff)
downloadgn-uploader-3e226164ca02cbf56704672ca9549bf1cd9dd349.tar.gz
Bug: Fix actual data value, not result set.
-rw-r--r--scripts/load_phenotypes_to_db.py2
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(