From 812865a8d98312b0c1245b9c79cde51add656954 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Fri, 13 May 2022 17:17:07 +0300 Subject: Remove case-attributes list from the metadata edit page * wqflask/wqflask/metadata_edits.py (display_phenotype_metadata): Delete "headers" variable when passing it to the template. *wqflask/wqflask/templates/edit_phenotype.html: Remove special not that lists the case-attributes with their IDs in brackets. --- wqflask/wqflask/metadata_edits.py | 2 +- wqflask/wqflask/templates/edit_phenotype.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py index cc9ee9bd..b2a23f69 100644 --- a/wqflask/wqflask/metadata_edits.py +++ b/wqflask/wqflask/metadata_edits.py @@ -170,7 +170,7 @@ def display_phenotype_metadata(dataset_id: str, name: str): dataset_id=dataset_id, name=name, resource_id=request.args.get("resource-id"), - headers=get_case_attributes(conn).keys(), + headers=get_case_attributes(conn), version=os.environ.get("GN_VERSION"), ) diff --git a/wqflask/wqflask/templates/edit_phenotype.html b/wqflask/wqflask/templates/edit_phenotype.html index c49aeb4a..a0b7a6eb 100644 --- a/wqflask/wqflask/templates/edit_phenotype.html +++ b/wqflask/wqflask/templates/edit_phenotype.html @@ -235,7 +235,6 @@

- Note: Current allowable case-attributes are: {{ ', '.join(headers) }}. You can find these case-attribute descriptions here.

-- cgit 1.4.1