diff options
author | David A Roberts <d@vidr.cc> | 2017-01-14 18:40:37 +1000 |
---|---|---|
committer | David A Roberts <d@vidr.cc> | 2017-01-16 13:31:16 +1000 |
commit | 1d30141c207e51c142cab3eee97783f08c1cb5c9 (patch) | |
tree | b3e07ba1168d274b3b789721270bac20edb30432 /searx/results.py | |
parent | d6cbc6b78be5e97cae8a12fb18ace9d51be5df55 (diff) | |
download | searxng-1d30141c207e51c142cab3eee97783f08c1cb5c9.tar.gz searxng-1d30141c207e51c142cab3eee97783f08c1cb5c9.zip |
[enh] show spelling corrections
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 6062f8013..e262ec110 100644 --- a/searx/results.py +++ b/searx/results.py @@ -127,6 +127,7 @@ class ResultContainer(object): self.infoboxes = [] self.suggestions = set() self.answers = set() + self.corrections = set() self._number_of_results = [] self._ordered = False self.paging = False @@ -140,6 +141,9 @@ class ResultContainer(object): elif 'answer' in result: self.answers.add(result['answer']) results.remove(result) + elif 'correction' in result: + self.corrections.add(result['correction']) + results.remove(result) elif 'infobox' in result: self._merge_infobox(result) results.remove(result) |