diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2017-01-18 23:49:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-18 23:49:01 +0100 |
| commit | b1d49bacb0d6135a7c0a5a32a82681b12b1762cd (patch) | |
| tree | 4c82ca611f822807beef6843770a97cce4d7d8fd /searx/results.py | |
| parent | 1a9f8240b851c64a10be7b8990b6f3926ca506b3 (diff) | |
| parent | 1d30141c207e51c142cab3eee97783f08c1cb5c9 (diff) | |
Merge pull request #827 from davidar/spell
[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) |