From 243d3e4298c93014f37ca6f1f957a60cb09f4ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Sun, 9 Jul 2017 22:09:46 +0200 Subject: show engine errors in infobox && add new error alert --- searx/webapp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'searx/webapp.py') 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(), -- cgit v1.2.3