diff options
author | Adam Tauber <asciimoo@gmail.com> | 2016-08-27 22:10:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-27 22:10:33 +0200 |
commit | 7591c8bfe314b82262c49373e7c26fe5c333d671 (patch) | |
tree | 1ad8dfc8073f22ae082eaa1280575d4bfcf9c7fe /searx | |
parent | 3043c404e42901a1234d150e43daee99810b46f5 (diff) | |
parent | aa227180e2e7b720d932d75d6fc86fb7417ef158 (diff) | |
download | searxng-7591c8bfe314b82262c49373e7c26fe5c333d671.tar.gz searxng-7591c8bfe314b82262c49373e7c26fe5c333d671.zip |
Merge pull request #672 from kvch/self-info-paging
Self information on later pages
Diffstat (limited to 'searx')
-rw-r--r-- | searx/plugins/self_info.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/plugins/self_info.py b/searx/plugins/self_info.py index 75cbae0de..438274c41 100644 --- a/searx/plugins/self_info.py +++ b/searx/plugins/self_info.py @@ -29,6 +29,8 @@ p = re.compile('.*user[ -]agent.*', re.IGNORECASE) # request: flask request object # ctx: the whole local context of the pre search hook def post_search(request, ctx): + if ctx['search'].pageno > 1: + return True if ctx['search'].query == 'ip': x_forwarded_for = request.headers.getlist("X-Forwarded-For") if x_forwarded_for: |