diff options
author | BonfaceKilz | 2022-03-31 15:24:01 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-04-07 11:56:21 +0300 |
commit | c77b3bb9bef61ab75097f02b235081514302d36f (patch) | |
tree | 3e600301b8d15beab69614a4e06b47bd073a4861 | |
parent | 5508696edf0b72a8c7f298cf66d9044d0baea0ad (diff) | |
download | genenetwork2-c77b3bb9bef61ab75097f02b235081514302d36f.tar.gz |
Pass missing "conn" when getting case attributes
* wqflask/wqflask/metadata_edits.py (show_case_attribute_columns):
Create a connection and pass it to "get_case_attributes".
-rw-r--r-- | wqflask/wqflask/metadata_edits.py | 5 |
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" |