forked from Icycoide/searxng
[fix] time range detection
This commit is contained in:
parent
3a8d193d1f
commit
350a84520d
10 changed files with 10 additions and 7 deletions
|
@ -58,7 +58,7 @@ def parse_url(url_string):
|
|||
|
||||
|
||||
def _get_url(query, offset, language, time_range):
|
||||
if time_range:
|
||||
if time_range in time_range_dict:
|
||||
return base_url + search_url_with_time.format(offset=offset,
|
||||
query=urlencode({'p': query}),
|
||||
lang=language,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue