mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 21:59:22 +02:00
show engine errors in infobox && add new error alert
This commit is contained in:
parent
3bd5ce6595
commit
243d3e4298
6 changed files with 29 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue