From 5468d86534139c6b8120eb5fb8093747ac3bc9fa Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 30 May 2025 13:30:40 -0500 Subject: Fix typo, and bug. --- uploader/phenotypes/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3