aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/maintenance/dataset')
-rw-r--r--wqflask/maintenance/dataset/datastructure.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/maintenance/dataset/datastructure.py b/wqflask/maintenance/dataset/datastructure.py
index f436d32c..7139856f 100644
--- a/wqflask/maintenance/dataset/datastructure.py
+++ b/wqflask/maintenance/dataset/datastructure.py
@@ -95,7 +95,7 @@ def get_nextdataid_phenotype():
return dataid
def insert_strain(inbredsetid, strainname, updatestrainxref=None):
- speciesid = get_species(inbredsetid)
+ speciesid = get_species(inbredsetid)[0]
cursor, con = utilities.get_cursor()
sql = """
INSERT INTO Strain
@@ -130,7 +130,7 @@ def insert_strain(inbredsetid, strainname, updatestrainxref=None):
cursor.execute(sql, (inbredsetid, strainid, orderid, "N", None))
def get_strain(inbredsetid, strainname):
- speciesid = get_species(inbredsetid)
+ speciesid = get_species(inbredsetid)[0]
cursor, con = utilities.get_cursor()
sql = """
SELECT Strain.`Id`, Strain.`Name`