diff options
-rw-r--r-- | wqflask/wqflask/api/router.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wqflask/wqflask/api/router.py b/wqflask/wqflask/api/router.py index 3a7dee77..41901159 100644 --- a/wqflask/wqflask/api/router.py +++ b/wqflask/wqflask/api/router.py @@ -440,6 +440,7 @@ def fetch_traits(dataset_name, file_format="json"): if file_format == "json": filename = dataset_name + "_traits.json" cursor.execute(query.format(dataset_id)) + result_list = [] for result in cursor.fetchall(): trait_dict = {} for i, field in enumerate(field_list): |