aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
diff options
context:
space:
mode:
authorzsloan2021-02-11 18:48:47 +0000
committerzsloan2021-02-11 18:48:47 +0000
commiteab244708953a14d0ad6b9f1b4b5a64ca9f48782 (patch)
tree4a0496f59421c67e7ca067bf0ae31d5288e2f278 /wqflask/base/trait.py
parentf81e15b4bc723d2dc05ec00226f87f79cb1dfb0c (diff)
downloadgenenetwork2-eab244708953a14d0ad6b9f1b4b5a64ca9f48782.tar.gz
Ensure trait description_display is set
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r--wqflask/base/trait.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 50bd8874..9b96da85 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -516,6 +516,7 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
# If the dataset is confidential and the user has access to confidential
# phenotype traits, then display the pre-publication description instead
# of the post-publication description
+ trait.description_display = ""
if not trait.pubmed_id:
trait.abbreviation = trait.pre_publication_abbreviation
trait.description_display = trait.pre_publication_description
@@ -523,8 +524,6 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
trait.abbreviation = trait.post_publication_abbreviation
if description:
trait.description_display = description.strip()
- else:
- trait.description_display = ""
if not trait.year.isdigit():
trait.pubmed_text = "N/A"