diff options
-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( |