diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-10-21 10:50:00 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-10-21 10:50:00 +0200 |
commit | d2fd56612c9ba363732d4ed983967008b4684594 (patch) | |
tree | 52313ce971882245ead14588c0587180d6f72885 /searx/plugins | |
parent | d8ef98371bd599be28307778d85dcee549d99f74 (diff) | |
download | searxng-d2fd56612c9ba363732d4ed983967008b4684594.tar.gz searxng-d2fd56612c9ba363732d4ed983967008b4684594.zip |
[fix] rename after result refactor
Diffstat (limited to 'searx/plugins')
-rw-r--r-- | searx/plugins/self_info.py | 8 |
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 |