From 13698f718afd00126edcf3c0ba672fa2dbe8c94b Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 3 Apr 2019 16:53:11 -0500 Subject: Fixed an issue that caused global phenotype search to often not work and certain phenotype datasets to not show up in drop-downs --- wqflask/maintenance/gen_select_dataset.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'wqflask/maintenance') 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]) -- cgit v1.2.3