summaryrefslogtreecommitdiff
path: root/searx/results.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-06-10 07:25:44 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2020-06-10 07:25:44 +0200
commite088b95e74882818a611e5c46593914495daf9fe (patch)
tree323b7e5ae3a5497a632130fd9f16f4edcd4f312d /searx/results.py
parentd065b9e4fbd4117e6f1cf565db1fbce6a0f89055 (diff)
parentaa7c043ff40bd1c1ec2e81748627aeac24608580 (diff)
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
Diffstat (limited to 'searx/results.py')
-rw-r--r--searx/results.py4
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'])