summaryrefslogtreecommitdiff
path: root/searx/engines/duckduckgo.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-07-26 00:22:05 +0200
committerAdam Tauber <asciimoo@gmail.com>2016-07-26 00:28:48 +0200
commit350a84520d9da2499ffd5b0fbe6218692f2a330d (patch)
tree03dd22bea46a817084d782feef8df63f8cd2b375 /searx/engines/duckduckgo.py
parent3a8d193d1f746165df35e573f18c7abee970feb0 (diff)
[fix] time range detection
Diffstat (limited to 'searx/engines/duckduckgo.py')
-rw-r--r--searx/engines/duckduckgo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py
index aa7a98754..2153492e9 100644
--- a/searx/engines/duckduckgo.py
+++ b/searx/engines/duckduckgo.py
@@ -67,7 +67,7 @@ def request(query, params):
params['url'] = url.format(
query=urlencode({'q': query}), offset=offset)
- if params['time_range']:
+ if params['time_range'] in time_range_dict:
params['url'] += time_range_url.format(range=time_range_dict[params['time_range']])
return params