diff options
author | Adam Tauber <asciimoo@gmail.com> | 2016-07-26 00:22:05 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2016-07-26 00:28:48 +0200 |
commit | 350a84520d9da2499ffd5b0fbe6218692f2a330d (patch) | |
tree | 03dd22bea46a817084d782feef8df63f8cd2b375 /searx/engines/google.py | |
parent | 3a8d193d1f746165df35e573f18c7abee970feb0 (diff) | |
download | searxng-350a84520d9da2499ffd5b0fbe6218692f2a330d.tar.gz searxng-350a84520d9da2499ffd5b0fbe6218692f2a330d.zip |
[fix] time range detection
Diffstat (limited to 'searx/engines/google.py')
-rw-r--r-- | searx/engines/google.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/google.py b/searx/engines/google.py index 3b845cbcd..ea93bc94f 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -185,7 +185,7 @@ def request(query, params): query=urlencode({'q': query}), hostname=google_hostname, lang=url_lang) - if params['time_range']: + if params['time_range'] in time_range_dict: params['url'] += time_range_search.format(range=time_range_dict[params['time_range']]) params['headers']['Accept-Language'] = language |