summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-07-15 18:24:48 +0200
committerGitHub <noreply@github.com>2017-07-15 18:24:48 +0200
commitc30f73f8fda2b51cfd95967a29cc34a2036ffddd (patch)
tree26d830b0429d3ed19f75f9ae96aa437e02a69ec4 /searx/webapp.py
parent3bd5ce65950cb86ec678ff3d074635638d63fb5d (diff)
parentbdd9528c6b589a2f55dbde050583bebbba40d898 (diff)
Merge pull request #961 from kvch/user-visible-engine-errors
show engine errors in infobox && add new error alert
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index e2825c050..1e66590c1 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -534,7 +534,8 @@ def index():
'answers': list(result_container.answers),
'corrections': list(result_container.corrections),
'infoboxes': result_container.infoboxes,
- 'suggestions': list(result_container.suggestions)}),
+ 'suggestions': list(result_container.suggestions),
+ 'unresponsive_engines': list(result_container.unresponsive_engines)}),
mimetype='application/json')
elif output_format == 'csv':
csv = UnicodeWriter(StringIO())
@@ -573,6 +574,7 @@ def index():
corrections=result_container.corrections,
infoboxes=result_container.infoboxes,
paging=result_container.paging,
+ unresponsive_engines=result_container.unresponsive_engines,
current_language=search_query.lang,
base_url=get_base_url(),
theme=get_current_theme_name(),