mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 13:49:26 +02:00
[enh] add routing directions to osm search - closes #254
This commit is contained in:
parent
785f0938fd
commit
2c6531b233
6 changed files with 38 additions and 12 deletions
|
@ -131,7 +131,7 @@ class ResultContainer(object):
|
|||
self._merged_results = []
|
||||
self.infoboxes = []
|
||||
self.suggestions = set()
|
||||
self.answers = set()
|
||||
self.answers = {}
|
||||
self.corrections = set()
|
||||
self._number_of_results = []
|
||||
self._ordered = False
|
||||
|
@ -146,7 +146,7 @@ class ResultContainer(object):
|
|||
self.suggestions.add(result['suggestion'])
|
||||
results.remove(result)
|
||||
elif 'answer' in result:
|
||||
self.answers.add(result['answer'])
|
||||
self.answers[result['answer']] = result
|
||||
results.remove(result)
|
||||
elif 'correction' in result:
|
||||
self.corrections.add(result['correction'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue