aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/metadata_edits.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py
index 604a1b10..ec6c9e7a 100644
--- a/wqflask/wqflask/metadata_edits.py
+++ b/wqflask/wqflask/metadata_edits.py
@@ -685,7 +685,10 @@ def approve_data(resource_id: str, file_name: str):
@metadata_edit.route("/case-attributes")
def show_case_attribute_columns():
- case_attributes = get_case_attributes()
+ case_attributes = {}
+ with database_connection() as conn:
+ case_attributes = get_case_attributes(conn)
+
for key, val in case_attributes.items():
if not val:
case_attributes[key] = "No description"