diff options
author | zsloan | 2021-02-03 19:36:40 +0000 |
---|---|---|
committer | zsloan | 2021-02-03 19:36:40 +0000 |
commit | 211aa77b9bb7de6257050a273396d15a9093747d (patch) | |
tree | c475ed3c5e9603663389a4a7fd05bb32eb3772ed /wqflask | |
parent | 9d2887e6b9ff94d85caa5a696a97fc38944655c8 (diff) | |
download | genenetwork2-211aa77b9bb7de6257050a273396d15a9093747d.tar.gz |
Fixed lines that caused an error on search page if there were no results
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/search_results.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py index 9e8001cf..f23c0582 100644 --- a/wqflask/wqflask/search_results.py +++ b/wqflask/wqflask/search_results.py @@ -166,11 +166,11 @@ class SearchResultPage(object): self.trait_list = trait_list - if this_trait.dataset.type == "ProbeSet": + if self.dataset.type == "ProbeSet": self.header_data_names = ['index', 'display_name', 'symbol', 'description', 'location', 'mean', 'lrs_score', 'lrs_location', 'additive'] - elif this_trait.dataset.type == "Publish": + elif self.dataset.type == "Publish": self.header_data_names = ['index', 'display_name', 'description', 'mean', 'authors', 'pubmed_text', 'lrs_score', 'lrs_location', 'additive'] - elif this_trait.dataset.type == "Geno": + elif self.dataset.type == "Geno": self.header_data_names = ['index', 'display_name', 'location'] def search(self): |