aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-02-28 10:09:46 +0300
committerFrederick Muriuki Muriithi2024-02-28 10:09:46 +0300
commit875af9519a3aad5199e476e863f44fbe947ae37e (patch)
tree2e750cca75c52a7e4c25ddcda7a9f4b42a6fa988
parent0828eb4f7400c72b37381bbaea6496e8a8a92f09 (diff)
downloadgn-uploader-load-raw-data-no-parsing.tar.gz
Fix bug: fetch from cursor, not return from cursor.execute(…)load-raw-data-no-parsing
-rw-r--r--scripts/insert_data.py2
1 files changed, 1 insertions, 1 deletions
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 "