aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorzsloan2020-11-11 12:55:36 -0600
committerzsloan2020-11-11 12:55:36 -0600
commita40538d382b334b2fcb52c1f9bccbe0533ddbaba (patch)
tree21ca7ea763bd266d0ada8d7604bcc91e4734ee9a /wqflask/base
parent4f9a389795d3ecade1a988347c834103f258e6dc (diff)
downloadgenenetwork2-a40538d382b334b2fcb52c1f9bccbe0533ddbaba.tar.gz
Switched checking if a trait is confidential to checking if it has a pubmed ID for the purposes of showing pre-publication abbreviation/description
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/trait.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index cfc02f8b..e0afa915 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -513,7 +513,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
- if trait.confidential:
+ if not trait.pubmed_id:
trait.abbreviation = trait.pre_publication_abbreviation
trait.description_display = trait.pre_publication_description
else: