logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: d2fd56612c9ba363732d4ed983967008b4684594
parent: d8ef98371bd599be28307778d85dcee549d99f74
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Wed, 21 Oct 2015 10:50:00 +0200

[fix] rename after result refactor

Diffstat:

searx/plugins/self_info.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 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