From 3e83499ba81888f49228d3f445820d4206e0ea46 Mon Sep 17 00:00:00 2001 From: Lei Yan Date: Sat, 22 Feb 2014 23:09:20 -0600 Subject: On branch master --- wqflask/maintenance/dataset/datastructure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wqflask') 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` -- cgit v1.2.3