aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-05-30 13:30:40 -0500
committerFrederick Muriuki Muriithi2025-05-30 13:30:40 -0500
commit5468d86534139c6b8120eb5fb8093747ac3bc9fa (patch)
tree17b55dd0512e71a0b724311530ec9cdeb5a8a3d2
parentae8fa1ba7773672a739d7d2f4888f52901f19bde (diff)
downloadgn-uploader-5468d86534139c6b8120eb5fb8093747ac3bc9fa.tar.gz
Fix typo, and bug.
-rw-r--r--uploader/phenotypes/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/uploader/phenotypes/models.py b/uploader/phenotypes/models.py
index 3ec17e7..e217699 100644
--- a/uploader/phenotypes/models.py
+++ b/uploader/phenotypes/models.py
@@ -333,6 +333,7 @@ def save_phenotypes_data(
f"(%(data_id)s, %(sample_id)s, %({_table_details['valueCol']})s) "
"RETURNING *"),
tuple(batch))
- _data = data + tuple(cursor.fetchall())
+
+ saved_data = saved_data + tuple(dict(row) for row in cursor.fetchall())
return saved_data