diff options
author | zsloan | 2020-11-18 12:48:43 -0600 |
---|---|---|
committer | zsloan | 2020-11-18 12:48:43 -0600 |
commit | 7a2a59f3d225f94bda5a9bc51a958d3203ea690c (patch) | |
tree | e9fc8eb04f5b649a364302d9860ba8d0f7ec91cf /wqflask/base/trait.py | |
parent | 2256312c8d2fdf11b78c894bdf030f640e6a2158 (diff) | |
download | genenetwork2-7a2a59f3d225f94bda5a9bc51a958d3203ea690c.tar.gz |
Fixed issue that was causing scatterplot cofactors to not work if the
cofactors were genotypes (because it tried to get the
"description_display" which doesn't exist for genotype traits)
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r-- | wqflask/base/trait.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index cfc02f8b..7763dbe8 100644 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -265,11 +265,12 @@ def get_sample_data(): trait_dict['species'] = trait_ob.dataset.group.species trait_dict['url'] = url_for( 'show_trait_page', trait_id=trait, dataset=dataset) - trait_dict['description'] = trait_ob.description_display if trait_ob.dataset.type == "ProbeSet": trait_dict['symbol'] = trait_ob.symbol trait_dict['location'] = trait_ob.location_repr + trait_dict['description'] = trait_ob.description_display elif trait_ob.dataset.type == "Publish": + trait_dict['description'] = trait_ob.description_display if trait_ob.pubmed_id: trait_dict['pubmed_link'] = trait_ob.pubmed_link trait_dict['pubmed_text'] = trait_ob.pubmed_text |