summaryrefslogtreecommitdiff
path: root/searx/engines/yahoo.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/yahoo.py
parent3a8d193d1f746165df35e573f18c7abee970feb0 (diff)
downloadsearxng-350a84520d9da2499ffd5b0fbe6218692f2a330d.tar.gz
searxng-350a84520d9da2499ffd5b0fbe6218692f2a330d.zip
[fix] time range detection
Diffstat (limited to 'searx/engines/yahoo.py')
-rw-r--r--searx/engines/yahoo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/yahoo.py b/searx/engines/yahoo.py
index 82f782b9d..8e24a283e 100644
--- a/searx/engines/yahoo.py
+++ b/searx/engines/yahoo.py
@@ -58,7 +58,7 @@ def parse_url(url_string):
def _get_url(query, offset, language, time_range):
- if time_range:
+ if time_range in time_range_dict:
return base_url + search_url_with_time.format(offset=offset,
query=urlencode({'p': query}),
lang=language,