aboutsummaryrefslogtreecommitdiff
path: root/wqflask/db/webqtlDatabaseFunction.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/db/webqtlDatabaseFunction.py')
-rw-r--r--wqflask/db/webqtlDatabaseFunction.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wqflask/db/webqtlDatabaseFunction.py b/wqflask/db/webqtlDatabaseFunction.py
index 567e7375..d6aabc41 100644
--- a/wqflask/db/webqtlDatabaseFunction.py
+++ b/wqflask/db/webqtlDatabaseFunction.py
@@ -58,4 +58,7 @@ def retrieve_species(group):
def retrieve_species_id(group):
- return g.db.execute("select SpeciesId from InbredSet where Name = %s", (group)).fetchone()[0]
+
+ result = fetch1("select SpeciesId from InbredSet where Name = '%s'" % (group),"/cross/"+group+".json",lambda r: r["species_id"])[0]
+ logger.debug("retrieve_species_id result:",result)
+ return result