summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-01-18 23:49:01 +0100
committerGitHub <noreply@github.com>2017-01-18 23:49:01 +0100
commitb1d49bacb0d6135a7c0a5a32a82681b12b1762cd (patch)
tree4c82ca611f822807beef6843770a97cce4d7d8fd /searx/webapp.py
parent1a9f8240b851c64a10be7b8990b6f3926ca506b3 (diff)
parent1d30141c207e51c142cab3eee97783f08c1cb5c9 (diff)
Merge pull request #827 from davidar/spell
[enh] show spelling corrections
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index b2fca5313..0b7169310 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -479,6 +479,7 @@ def index():
'number_of_results': number_of_results,
'results': results,
'answers': list(result_container.answers),
+ 'corrections': list(result_container.corrections),
'infoboxes': result_container.infoboxes,
'suggestions': list(result_container.suggestions)}),
mimetype='application/json')
@@ -515,6 +516,7 @@ def index():
advanced_search=advanced_search,
suggestions=result_container.suggestions,
answers=result_container.answers,
+ corrections=result_container.corrections,
infoboxes=result_container.infoboxes,
paging=result_container.paging,
current_language=search_query.lang,