diff options
author | zsloan | 2020-04-21 16:54:41 -0500 |
---|---|---|
committer | GitHub | 2020-04-21 16:54:41 -0500 |
commit | 821465df32bfcbab73a654d1e2386f2a07f4695f (patch) | |
tree | 871c8502774cb7a8fce950f46285f62ba3d0b113 /wqflask/maintenance/gen_select_dataset.py | |
parent | d249d8fa90eabd47020926fdadbfe22ac2bba900 (diff) | |
parent | cf8b4c21d81efaa01d347478dc126e6d9b53f7a9 (diff) | |
download | genenetwork2-821465df32bfcbab73a654d1e2386f2a07f4695f.tar.gz |
Merge pull request #2 from genenetwork/testing
Pulling changes from main branch
Diffstat (limited to 'wqflask/maintenance/gen_select_dataset.py')
-rw-r--r-- | wqflask/maintenance/gen_select_dataset.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/wqflask/maintenance/gen_select_dataset.py b/wqflask/maintenance/gen_select_dataset.py index be028bdd..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 @@ -284,13 +285,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, |