diff options
author | Frederick Muriuki Muriithi | 2025-05-30 13:30:19 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-05-30 13:30:19 -0500 |
commit | ae8fa1ba7773672a739d7d2f4888f52901f19bde (patch) | |
tree | 6a946aa6080ba61b5cf92dea29f7da14b3854f9c | |
parent | f8602d8e656072a280bfb1b5d4839de44a682045 (diff) | |
download | gn-uploader-ae8fa1ba7773672a739d7d2f4888f52901f19bde.tar.gz |
Fix indentation.
-rw-r--r-- | uploader/phenotypes/models.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/uploader/phenotypes/models.py b/uploader/phenotypes/models.py index 4454ba3..3ec17e7 100644 --- a/uploader/phenotypes/models.py +++ b/uploader/phenotypes/models.py @@ -327,11 +327,11 @@ def save_phenotypes_data( with conn.cursor(cursorclass=DictCursor) as cursor: for batch in take(data, 5000): cursor.executemany( - (f"INSERT INTO {_table_details['table']}" - f"(Id, StrainId, {_table_details['valueCol']}) " - "VALUES " - f"(%(data_id)s, %(sample_id)s, %({_table_details['valueCol']})s) " - "RETURNING *"), + (f"INSERT INTO {_table_details['table']}" + f"(Id, StrainId, {_table_details['valueCol']}) " + "VALUES " + f"(%(data_id)s, %(sample_id)s, %({_table_details['valueCol']})s) " + "RETURNING *"), tuple(batch)) _data = data + tuple(cursor.fetchall()) |