mirror of
https://github.com/searxng/searxng.git
synced 2025-12-24 04:30:02 +00:00
[fix] time range detection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user