aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/api/gen_menu.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/wqflask/wqflask/api/gen_menu.py b/wqflask/wqflask/api/gen_menu.py
index e65b36e4..7f4ec1bc 100644
--- a/wqflask/wqflask/api/gen_menu.py
+++ b/wqflask/wqflask/api/gen_menu.py
@@ -178,12 +178,12 @@ def build_datasets(species, group, type_name):
elif type_name == "Genotypes":
results = g.db.execute(
- ("SELECT InfoFiles.GN_AccesionId " +
+ ("SELECT InfoFiles.GN_AccesionId "
"FROM InfoFiles, GenoFreeze, InbredSet "
- + "WHERE InbredSet.Name = '{}' AND "
- + "GenoFreeze.InbredSetId = InbredSet.Id AND "
- + "InfoFiles.InfoPageName = GenoFreeze.ShortName "
- + "ORDER BY GenoFreeze.CreateTime DESC").format(group)).fetchone()
+ "WHERE InbredSet.Name = '{}' AND "
+ "GenoFreeze.InbredSetId = InbredSet.Id AND "
+ "InfoFiles.InfoPageName = GenoFreeze.ShortName "
+ "ORDER BY GenoFreeze.CreateTime DESC").format(group)).fetchone()
dataset_id = "None"
if bool(results):