diff options
author | Frederick Muriuki Muriithi | 2024-02-28 10:09:46 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-02-28 10:09:46 +0300 |
commit | 875af9519a3aad5199e476e863f44fbe947ae37e (patch) | |
tree | 2e750cca75c52a7e4c25ddcda7a9f4b42a6fa988 | |
parent | 0828eb4f7400c72b37381bbaea6496e8a8a92f09 (diff) | |
download | gn-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.py | 2 |
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 " |