aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/traits.py
diff options
context:
space:
mode:
authorBonfaceKilz2022-02-08 08:00:08 +0300
committerBonfaceKilz2022-02-08 08:00:08 +0300
commit34aa1f04ded87af501bb34ecdd5937e082c010f6 (patch)
tree06ca82f45387ceac31d6bb99aa314ba5bcd3b9e6 /gn3/db/traits.py
parent710769e84b3bc6a2bdd66effdbac0659272ed511 (diff)
downloadgenenetwork3-34aa1f04ded87af501bb34ecdd5937e082c010f6.tar.gz
db: traits: Insert "count" instead of "error" in "NStrain" table
Diffstat (limited to 'gn3/db/traits.py')
-rw-r--r--gn3/db/traits.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/db/traits.py b/gn3/db/traits.py
index b201f1f..e80f41b 100644
--- a/gn3/db/traits.py
+++ b/gn3/db/traits.py
@@ -270,7 +270,7 @@ def insert_sample_data(conn: Any, #pylint: disable=[R0913]
# Insert into the NStrain table
if count and count != "x":
cursor.execute(("INSERT INTO NStrain "
- "(StrainId, DataId, error) "
+ "(StrainId, DataId, count) "
"VALUES (%s, %s, %s)") %
(strain_id, data_id, count))
inserted_n_strains = cursor.rowcount