about summary refs log tree commit diff
path: root/uploader/phenotypes/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-11-03 13:47:30 -0600
committerFrederick Muriuki Muriithi2025-11-03 13:49:41 -0600
commit09070949cfe5d99b999ce93358a284b9cd7880da (patch)
treebb80f8bc1592e183f78fd2eb2440d06b3b5685f2 /uploader/phenotypes/views.py
parentea7d74dd341da50c1956ce59d5c788525893b0bf (diff)
downloadgn-uploader-09070949cfe5d99b999ce93358a284b9cd7880da.tar.gz
Improve UI to enable editing publication details.
Diffstat (limited to 'uploader/phenotypes/views.py')
-rw-r--r--uploader/phenotypes/views.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index 556b5ff..d02018d 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -245,13 +245,7 @@ def view_phenotype(# pylint: disable=[unused-argument]
             xref_id=xref_id,
             phenotype=phenotype,
             has_se=any(bool(item.get("error")) for item in phenotype["data"]),
-            publish_data={
-                key.replace("_", " "): val
-                for key,val in
-                (phenotype_publication_data(conn, phenotype["Id"]) or {}).items()
-                if (key in ("PubMed_ID", "Authors", "Title", "Journal")
-                    and __non_empty__(val))
-            },
+            publication=(phenotype_publication_data(conn, phenotype["Id"]) or {}),
             privileges=privileges,
             activelink="view-phenotype")