aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/search_results.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py
index de4b01eb..f63a84d1 100644
--- a/wqflask/wqflask/search_results.py
+++ b/wqflask/wqflask/search_results.py
@@ -79,8 +79,14 @@ views.py).
self.search()
except:
self.search_term_exists = False
+
+ self.too_many_results = False
if self.search_term_exists:
- self.gen_search_result()
+ if len(self.results) > 50000:
+ self.trait_list = []
+ self.too_many_results = True
+ else:
+ self.gen_search_result()
def gen_search_result(self):