summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2019-10-14 14:18:02 +0200
committerAdam Tauber <asciimoo@gmail.com>2019-10-14 14:18:02 +0200
commit3d0c22c58d011579277868838bbb2255eaf174af (patch)
treeacf3c0964c9b4febed93850b4bbb9667a16b104c /searx
parent94ea9d6622cf7784ca45a84ff804cd697b765e39 (diff)
downloadsearxng-3d0c22c58d011579277868838bbb2255eaf174af.tar.gz
searxng-3d0c22c58d011579277868838bbb2255eaf174af.zip
[fix] normalize time range parameter
Diffstat (limited to 'searx')
-rw-r--r--searx/query.py2
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):