[fix] normalize time range parameter

This commit is contained in:
Adam Tauber 2019-10-14 14:18:02 +02:00
parent 94ea9d6622
commit 3d0c22c58d

View file

@ -184,7 +184,7 @@ class SearchQuery(object):
self.lang = lang self.lang = lang
self.safesearch = safesearch self.safesearch = safesearch
self.pageno = pageno 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 self.timeout_limit = timeout_limit
def __str__(self): def __str__(self):