From 211aa77b9bb7de6257050a273396d15a9093747d Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 3 Feb 2021 19:36:40 +0000 Subject: Fixed lines that caused an error on search page if there were no results --- wqflask/wqflask/search_results.py | 6 +++--- 1 file 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): -- cgit v1.2.3