From 3e226164ca02cbf56704672ca9549bf1cd9dd349 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 28 May 2025 16:59:52 -0500 Subject: Bug: Fix actual data value, not result set. --- 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 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( -- cgit v1.2.3