forked from Icycoide/searxng
[enh] show spelling corrections
This commit is contained in:
parent
d6cbc6b78b
commit
1d30141c20
5 changed files with 23 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue