aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wqflask/wqflask/api/gen_menu.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/wqflask/wqflask/api/gen_menu.py b/wqflask/wqflask/api/gen_menu.py
index 18afc5ad..eaddecd7 100644
--- a/wqflask/wqflask/api/gen_menu.py
+++ b/wqflask/wqflask/api/gen_menu.py
@@ -23,12 +23,7 @@ def get_species():
"""Build species list"""
results = g.db.execute(
"SELECT Name, MenuName FROM Species ORDER BY OrderId").fetchall()
-
- species = []
- for result in results:
- species.append([str(result[0]), str(result[1])])
-
- return species
+ return [[name, menu_name] for name, menu_name in results]
def get_groups(species):