aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2022-07-04 15:10:14 +0300
committerBonfaceKilz2022-07-04 15:37:52 +0300
commitc1c5ab5ba940e2b48c9568a6c1d34ccae4d17d7a (patch)
treedcfabefaa15c98949a3d2bcaed5e88da3eabff4e /wqflask
parentc6d6b1b59531d44b514f97184160d4bb096b01b5 (diff)
downloadgenenetwork2-c1c5ab5ba940e2b48c9568a6c1d34ccae4d17d7a.tar.gz
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.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/metadata_edits.py3
1 files changed, 1 insertions, 2 deletions
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=(