aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2019-10-25 17:38:43 -0500
committerzsloan2019-10-25 17:38:43 -0500
commited0051e95ddf0315ae5de08c0c33e9f779e75b32 (patch)
treec430e276653a579ae3d05c58acd9e89b47304bbc /wqflask
parentb8f4ab7358fbc504cec50a71fd0223afde9229ee (diff)
downloadgenenetwork2-ed0051e95ddf0315ae5de08c0c33e9f779e75b32.tar.gz
Dropdowns now use family order ID so we can manually set the order of sets of groups
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/api/gen_menu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/api/gen_menu.py b/wqflask/wqflask/api/gen_menu.py
index 455cf15a..7d2d243c 100644
--- a/wqflask/wqflask/api/gen_menu.py
+++ b/wqflask/wqflask/api/gen_menu.py
@@ -76,7 +76,7 @@ def get_groups(species):
WHERE Species.Name = '{}' AND
InbredSet.SpeciesId = Species.Id
GROUP by InbredSet.Name
- ORDER BY IFNULL(InbredSet.Family, InbredSet.FullName) ASC, InbredSet.FullName ASC, InbredSet.MenuOrderId ASC""".format(species_name)).fetchall()
+ ORDER BY IFNULL(InbredSet.FamilyOrder, InbredSet.FullName) ASC, IFNULL(InbredSet.Family, InbredSet.FullName) ASC, InbredSet.FullName ASC, InbredSet.MenuOrderId ASC""".format(species_name)).fetchall()
for result in results:
family_name = "Family:" + str(result[2])