From c1c5ab5ba940e2b48c9568a6c1d34ccae4d17d7a Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Mon, 4 Jul 2022 15:10:14 +0300 Subject: wqflask: Use a map over a tuple when fetching case-attributes * wqflask/wqflask/metadata_edits.py (update_phenotype): Replace old "get_case_attributes" function call which returned a dict with the new updated version that returns a tuple. --- wqflask/wqflask/metadata_edits.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py index 5a5ee4ac..5468fe9b 100644 --- a/wqflask/wqflask/metadata_edits.py +++ b/wqflask/wqflask/metadata_edits.py @@ -227,8 +227,7 @@ def update_phenotype(dataset_id: str, name: str): diff_data = {} with database_connection() as conn: headers = ["Strain Name", "Value", "SE", "Count"] + list( - get_case_attributes(conn).keys() - ) + map(lambda x: x[1], get_case_attributes(conn))) diff_data = remove_insignificant_edits( diff_data=csv_diff( base_csv=( -- cgit v1.2.3