From 2fb299a8338501460ec77adfe2b5e1832b32f998 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 27 Jan 2025 16:01:28 -0600 Subject: Show SE and N field if even one row has SE. --- uploader/phenotypes/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uploader') diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py index d283e47..1e8c9ef 100644 --- a/uploader/phenotypes/views.py +++ b/uploader/phenotypes/views.py @@ -236,7 +236,7 @@ def view_phenotype(# pylint: disable=[unused-argument] dataset=dataset, xref_id=xref_id, phenotype=phenotype, - has_se=all(bool(item.get("error")) for item in phenotype["data"]), + has_se=any(bool(item.get("error")) for item in phenotype["data"]), publish_data={ key.replace("_", " "): val for key,val in -- cgit v1.2.3