diff options
author | zsloan | 2019-04-03 16:53:11 -0500 |
---|---|---|
committer | zsloan | 2019-04-03 16:53:11 -0500 |
commit | 13698f718afd00126edcf3c0ba672fa2dbe8c94b (patch) | |
tree | ee1807080379325cb81c2017531e8abbc8bc6c07 /wqflask/maintenance | |
parent | 05ede8b20b88284dae97d632da6e57248053cefd (diff) | |
download | genenetwork2-13698f718afd00126edcf3c0ba672fa2dbe8c94b.tar.gz |
Fixed an issue that caused global phenotype search to often not work and certain phenotype datasets to not show up in drop-downs
Diffstat (limited to 'wqflask/maintenance')
-rw-r--r-- | wqflask/maintenance/gen_select_dataset.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wqflask/maintenance/gen_select_dataset.py b/wqflask/maintenance/gen_select_dataset.py index 48849c8d..4d1b34a3 100644 --- a/wqflask/maintenance/gen_select_dataset.py +++ b/wqflask/maintenance/gen_select_dataset.py @@ -187,7 +187,6 @@ def get_datasets(types): for species, group_dict in types.iteritems(): datasets[species] = {} for group, type_list in group_dict.iteritems(): - #print("type_list: ", type_list) datasets[species][group] = {} for type_name in type_list: these_datasets = build_datasets(species, group, type_name[0]) @@ -209,7 +208,7 @@ def build_datasets(species, group, type_name): PublishFreeze.CreateTime asc""" % group) results = Cursor.fetchall() - if results != None: + if len(results) > 0: for result in results: print(result) dataset_id = str(result[0]) |