commit: a59d171385a0bfbff1b5df675ec78a88a0323543
parent: 3afc9c9c0b10eae3e02791dfc1a2bd3fbb3e984d
Author: Adam Tauber <asciimoo@gmail.com>
Date: Mon, 26 Oct 2015 14:22:27 +0100
[fix] answer result type
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/searx/results.py b/searx/results.py
@@ -100,7 +100,7 @@ class ResultContainer(object):
self.suggestions.add(result['suggestion'])
results.remove(result)
elif 'answer' in result:
- self.answers.add(result['suggestion'])
+ self.answers.add(result['answer'])
results.remove(result)
elif 'infobox' in result:
self._merge_infobox(result)