aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset/datastructure.py
diff options
context:
space:
mode:
authorLei Yan2014-02-22 23:09:20 -0600
committerLei Yan2014-02-22 23:09:20 -0600
commit3e83499ba81888f49228d3f445820d4206e0ea46 (patch)
tree9ea050f103412378c63482311a1b1d496b2cad34 /wqflask/maintenance/dataset/datastructure.py
parent1e92d78d574956d88fef648cbde4306d78952626 (diff)
downloadgenenetwork2-3e83499ba81888f49228d3f445820d4206e0ea46.tar.gz
On branch master
Diffstat (limited to 'wqflask/maintenance/dataset/datastructure.py')
-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`