diff options
author | Adam Tauber <asciimoo@gmail.com> | 2019-10-14 14:18:02 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2019-10-14 14:18:02 +0200 |
commit | 3d0c22c58d011579277868838bbb2255eaf174af (patch) | |
tree | acf3c0964c9b4febed93850b4bbb9667a16b104c /searx/query.py | |
parent | 94ea9d6622cf7784ca45a84ff804cd697b765e39 (diff) | |
download | searxng-3d0c22c58d011579277868838bbb2255eaf174af.tar.gz searxng-3d0c22c58d011579277868838bbb2255eaf174af.zip |
[fix] normalize time range parameter
Diffstat (limited to 'searx/query.py')
-rw-r--r-- | searx/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/query.py b/searx/query.py index 382aed871..c4002bd31 100644 --- a/searx/query.py +++ b/searx/query.py @@ -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): |