From ed550f028b5db1fef57789d15c5f59a413f567f1 Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 18 Oct 2019 14:33:37 -0500 Subject: Added UniProt link and fixed issue that caused sample lists to not be formed correctly in certain situations --- wqflask/maintenance/gen_select_dataset.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'wqflask/maintenance/gen_select_dataset.py') diff --git a/wqflask/maintenance/gen_select_dataset.py b/wqflask/maintenance/gen_select_dataset.py index be028bdd..4005d423 100644 --- a/wqflask/maintenance/gen_select_dataset.py +++ b/wqflask/maintenance/gen_select_dataset.py @@ -284,13 +284,13 @@ def main(): types = get_types(groups) datasets = get_datasets(types) - species.append(('All Species', 'All Species')) - groups['All Species'] = [('All Groups', 'All Groups')] - types['All Species'] = {} - types['All Species']['All Groups'] = [('Phenotypes', 'Phenotypes')] - datasets['All Species'] = {} - datasets['All Species']['All Groups'] = {} - datasets['All Species']['All Groups']['Phenotypes'] = [('All Phenotypes','All Phenotypes')] + #species.append(('All Species', 'All Species')) + #groups['All Species'] = [('All Groups', 'All Groups')] + #types['All Species'] = {} + #types['All Species']['All Groups'] = [('Phenotypes', 'Phenotypes')] + #datasets['All Species'] = {} + #datasets['All Species']['All Groups'] = {} + #datasets['All Species']['All Groups']['Phenotypes'] = [('All Phenotypes','All Phenotypes')] data = dict(species=species, groups=groups, -- cgit v1.2.3 From ae8c09f09739f434522d5e4948582b50ad423138 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 10 Mar 2020 14:53:31 -0500 Subject: Added back macaque monkey to dropdown generation, not sure why it was removed; need to ask Rob --- wqflask/maintenance/gen_select_dataset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wqflask/maintenance/gen_select_dataset.py') diff --git a/wqflask/maintenance/gen_select_dataset.py b/wqflask/maintenance/gen_select_dataset.py index 4005d423..647e58a2 100644 --- a/wqflask/maintenance/gen_select_dataset.py +++ b/wqflask/maintenance/gen_select_dataset.py @@ -80,7 +80,8 @@ def parse_db_uri(): def get_species(): """Build species list""" - Cursor.execute("select Name, MenuName from Species where Species.Name != 'macaque monkey' order by OrderId") + #Cursor.execute("select Name, MenuName from Species where Species.Name != 'macaque monkey' order by OrderId") + Cursor.execute("select Name, MenuName from Species order by OrderId") species = list(Cursor.fetchall()) return species -- cgit v1.2.3