mirror of
https://github.com/searxng/searxng
synced 2024-11-18 15:26:25 +00:00
[fix] normalize time range parameter
This commit is contained in:
parent
94ea9d6622
commit
3d0c22c58d
@ -184,7 +184,7 @@ class SearchQuery(object):
|
||||
self.lang = lang
|
||||
self.safesearch = safesearch
|
||||
self.pageno = pageno
|
||||
self.time_range = time_range
|
||||
self.time_range = None if time_range in ('', 'None', None) else time_range
|
||||
self.timeout_limit = timeout_limit
|
||||
|
||||
def __str__(self):
|
||||
|
Loading…
Reference in New Issue
Block a user