diff options
author | zsloan | 2021-11-12 07:08:12 +0000 |
---|---|---|
committer | zsloan | 2021-11-12 07:08:12 +0000 |
commit | d6398ea7db0072694b0d8f79d909c276fae75bdd (patch) | |
tree | c7a90037f16411e2868477a6434d4f01bf4b4238 /wqflask | |
parent | 50580bf1d8114c8cc0fafb429232fa29fab10415 (diff) | |
download | genenetwork2-d6398ea7db0072694b0d8f79d909c276fae75bdd.tar.gz |
Change the max results to display depending upon data type, since ProbeSet results can be displayed in larger numbers more easily
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/search_results.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py index 5ca1f9ca..33f9319c 100644 --- a/wqflask/wqflask/search_results.py +++ b/wqflask/wqflask/search_results.py @@ -62,8 +62,10 @@ class SearchResultPage: self.search_term_exists = True self.results = [] + max_result_count = 100000 # max number of results to display type = kw.get('type') if type == "Phenotypes": # split datatype on type field + max_result_count = 50000 dataset_type = "Publish" elif type == "Genotypes": dataset_type = "Geno" @@ -81,7 +83,7 @@ class SearchResultPage: self.too_many_results = False if self.search_term_exists: - if len(self.results) > 50000: + if len(self.results) > max_result_count: self.trait_list = [] self.too_many_results = True else: |