diff options
author | Adam Tauber <asciimoo@gmail.com> | 2020-06-09 17:01:59 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2020-06-09 17:18:44 +0200 |
commit | 2c6531b2330a5c8ca986379dbad8812a6c6d3e49 (patch) | |
tree | 479755fab6b8eda840f55e9b0bb6aabc1256176d /searx/results.py | |
parent | 785f0938fdc6c0b587d5f416f005ab5046260ba6 (diff) | |
download | searxng-2c6531b2330a5c8ca986379dbad8812a6c6d3e49.tar.gz searxng-2c6531b2330a5c8ca986379dbad8812a6c6d3e49.zip |
[enh] add routing directions to osm search - closes #254
Diffstat (limited to 'searx/results.py')
-rw-r--r-- | searx/results.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/results.py b/searx/results.py index 62a01a5bd..17db33aa4 100644 --- a/searx/results.py +++ b/searx/results.py @@ -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']) |