summaryrefslogtreecommitdiff
path: root/searx/plugins
diff options
context:
space:
mode:
authorKang-min Liu <gugod@gugod.org>2015-11-14 00:05:44 +0100
committerKang-min Liu <gugod@gugod.org>2015-11-14 00:05:44 +0100
commitac8759cd3ff99024864fd04d7c4bef5c3a00b971 (patch)
tree30c3f8b61504532df926bbffedcc8df80a8e926e /searx/plugins
parentc7c6c35ccd7373d2107b70b92badb9b70d31905f (diff)
parente98aef6fc4954681e58d774203d522f0ae478004 (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'searx/plugins')
-rw-r--r--searx/plugins/self_info.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/plugins/self_info.py b/searx/plugins/self_info.py
index 5ca994526..dc6b7cd0e 100644
--- a/searx/plugins/self_info.py
+++ b/searx/plugins/self_info.py
@@ -35,10 +35,10 @@ def post_search(request, ctx):
ip = x_forwarded_for[0]
else:
ip = request.remote_addr
- ctx['search'].answers.clear()
- ctx['search'].answers.add(ip)
+ ctx['search'].result_container.answers.clear()
+ ctx['search'].result_container.answers.add(ip)
elif p.match(ctx['search'].query):
ua = request.user_agent
- ctx['search'].answers.clear()
- ctx['search'].answers.add(ua)
+ ctx['search'].result_container.answers.clear()
+ ctx['search'].result_container.answers.add(ua)
return True