diff options
author | Noémi Ványi <sitbackandwait@gmail.com> | 2017-07-09 22:09:46 +0200 |
---|---|---|
committer | Noémi Ványi <sitbackandwait@gmail.com> | 2017-07-12 16:29:11 +0200 |
commit | 243d3e4298c93014f37ca6f1f957a60cb09f4ae1 (patch) | |
tree | 568d15c055c1841dd5bdb37b5be2a81c25d2efd0 /searx/results.py | |
parent | 3bd5ce65950cb86ec678ff3d074635638d63fb5d (diff) | |
download | searxng-243d3e4298c93014f37ca6f1f957a60cb09f4ae1.tar.gz searxng-243d3e4298c93014f37ca6f1f957a60cb09f4ae1.zip |
show engine errors in infobox && add new error alert
Diffstat (limited to 'searx/results.py')
-rw-r--r-- | searx/results.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/results.py b/searx/results.py index 6abffb57a..a7b2e385d 100644 --- a/searx/results.py +++ b/searx/results.py @@ -135,6 +135,7 @@ class ResultContainer(object): self._number_of_results = [] self._ordered = False self.paging = False + self.unresponsive_engines = [] def extend(self, engine_name, results): for result in list(results): @@ -304,3 +305,6 @@ class ResultContainer(object): if not resultnum_sum or not self._number_of_results: return 0 return resultnum_sum / len(self._number_of_results) + + def add_unresponsive_engine(self, engine_name): + self.unresponsive_engines.append(engine_name) |