diff options
author | Frederick Muriuki Muriithi | 2025-01-27 16:01:28 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-01-27 16:04:01 -0600 |
commit | 2fb299a8338501460ec77adfe2b5e1832b32f998 (patch) | |
tree | a34703cec1a07186bb9d903d6ffbdba9eddf971b /uploader | |
parent | 75d20d9ddd88e32b149892f5686808dbb5e53ee3 (diff) | |
download | gn-uploader-2fb299a8338501460ec77adfe2b5e1832b32f998.tar.gz |
Show SE and N field if even one row has SE.
Diffstat (limited to 'uploader')
-rw-r--r-- | uploader/phenotypes/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |