aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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