diff options
author | zsloan | 2021-10-18 17:55:09 +0000 |
---|---|---|
committer | zsloan | 2021-10-18 17:55:09 +0000 |
commit | bc1b297acdd85f9bc04cd402f646ce123401b907 (patch) | |
tree | f6a103a6ae2d7e6d0dc6ca28ddc2d353189bbbc7 /wqflask | |
parent | e36eaf0003a598bc5aa688803dd1b36c24a4c051 (diff) | |
download | genenetwork2-bc1b297acdd85f9bc04cd402f646ce123401b907.tar.gz |
Replace this_trait.dataset.type with just self.dataset.type
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/search_results.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py index bc0c08a1..5db469c1 100644 --- a/wqflask/wqflask/search_results.py +++ b/wqflask/wqflask/search_results.py @@ -200,13 +200,14 @@ class SearchResultPage: self.max_widths[key] = max(len(str(trait[key])), self.max_widths[key]) if key in self.max_widths else len(str(trait[key])) self.wide_columns_exist = False - if this_trait.dataset.type == "Publish": + if self.dataset.type == "Publish": if (self.max_widths['display_name'] > 25 or self.max_widths['description'] > 100 or self.max_widths['authors']> 80): self.wide_columns_exist = True - if this_trait.dataset.type == "ProbeSet": + if self.dataset.type == "ProbeSet": if (self.max_widths['display_name'] > 25 or self.max_widths['symbol'] > 25 or self.max_widths['description'] > 100): self.wide_columns_exist = True + self.trait_list = trait_list def search(self): |