mirror of https://github.com/searxng/searxng.git
[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