aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-03 15:48:35 +0300
committerBonfaceKilz2020-08-03 16:44:49 +0300
commit31e582e4d1e3fc2d36a72f9c775bde40ab61d878 (patch)
tree16acf2b579411770163b9b3117924dd9c48e6ad9 /wqflask
parentb4a6a2cdc523d09334a33ca9a4efe7bc0e77d3de (diff)
downloadgenenetwork2-31e582e4d1e3fc2d36a72f9c775bde40ab61d878.tar.gz
Update how boolean is returned
* wqflask/wqflask/api/gen_menu.py (get_datasets): convert return value directly using "bool" to be more general and cater for cases wher "None" is returned
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 e2d8d88a..82c5d9be 100644
--- a/wqflask/wqflask/api/gen_menu.py
+++ b/wqflask/wqflask/api/gen_menu.py
@@ -134,7 +134,7 @@ def get_datasets(types):
datasets[species][group] = {}
for type_name in type_list:
these_datasets = build_datasets(species, group, type_name[0])
- if len(these_datasets) > 0:
+ if bool(these_datasets):
datasets[species][group][type_name[0]] = these_datasets
return datasets