From 875af9519a3aad5199e476e863f44fbe947ae37e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 28 Feb 2024 10:09:46 +0300 Subject: Fix bug: fetch from cursor, not return from cursor.execute(…) --- scripts/insert_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/insert_data.py b/scripts/insert_data.py index a441dcb..7d3c1c6 100644 --- a/scripts/insert_data.py +++ b/scripts/insert_data.py @@ -264,7 +264,7 @@ def insert_se(# pylint: disable = [too-many-arguments] "WHERE gc.Id=%s AND psf.Id=%s"), (platformid, datasetid)) - errorinfo = dquery.fetchone() + errorinfo = cursor.fetchone() print(("ERROR: No annotations found for the " f"'{errorinfo['datasetname']}' dataset (Id: {datasetid}) " f"under the '{errorinfo['studyname']}' study linked to the " -- cgit v1.2.3