diff options
author | Frederick Muriuki Muriithi | 2025-05-30 13:30:40 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-05-30 13:30:40 -0500 |
commit | 5468d86534139c6b8120eb5fb8093747ac3bc9fa (patch) | |
tree | 17b55dd0512e71a0b724311530ec9cdeb5a8a3d2 | |
parent | ae8fa1ba7773672a739d7d2f4888f52901f19bde (diff) | |
download | gn-uploader-5468d86534139c6b8120eb5fb8093747ac3bc9fa.tar.gz |
Fix typo, and bug.
-rw-r--r-- | uploader/phenotypes/models.py | 3 |
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 |