about summary refs log tree commit diff
path: root/uploader
diff options
context:
space:
mode:
Diffstat (limited to 'uploader')
-rw-r--r--uploader/phenotypes/models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/uploader/phenotypes/models.py b/uploader/phenotypes/models.py
index a6ee694..c2aeebf 100644
--- a/uploader/phenotypes/models.py
+++ b/uploader/phenotypes/models.py
@@ -315,8 +315,9 @@ def create_new_phenotypes(conn: mdb.Connection,
             cursor.executemany(
                 ("INSERT INTO "
                  "Phenotype(Pre_publication_description, Original_description, Units, Authorized_Users) "
-                 "VALUES (%(id)s, %(description)s, %(units)s, 'robwilliams')"),
-                tuple(batch))
+                 "VALUES (%s, %s, %s, 'robwilliams')"),
+                tuple((row["id"], row["description"], row["units"])
+                      for row in batch))
             paramstr = ", ".join(["%s"] * len(batch))
             cursor.execute(
                 "SELECT * FROM Phenotype WHERE Pre_publication_description IN "