summaryrefslogtreecommitdiff
path: root/searx/engines/flickr_noapi.py
diff options
context:
space:
mode:
authorNoémi Ványi <sitbackandwait@gmail.com>2016-12-11 16:39:12 +0100
committerNoémi Ványi <sitbackandwait@gmail.com>2016-12-11 16:58:31 +0100
commitc59c76e6ee14f0417ad55ecf0f888f62f34f1f6d (patch)
treede9b8bfa3460ad3712b38132ad6c4037f7e475fd /searx/engines/flickr_noapi.py
parent2fc1091b7fbd76189754767e2da8315e04ca1e47 (diff)
downloadsearxng-c59c76e6ee14f0417ad55ecf0f888f62f34f1f6d.tar.gz
searxng-c59c76e6ee14f0417ad55ecf0f888f62f34f1f6d.zip
add year to time range to engines which support "Last year"
Engines: * Bing images * Flickr (noapi) * Google * Google Images * Google News
Diffstat (limited to 'searx/engines/flickr_noapi.py')
-rw-r--r--searx/engines/flickr_noapi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/flickr_noapi.py b/searx/engines/flickr_noapi.py
index 68be139be..3c0ec7b70 100644
--- a/searx/engines/flickr_noapi.py
+++ b/searx/engines/flickr_noapi.py
@@ -34,7 +34,8 @@ paging = True
time_range_support = True
time_range_dict = {'day': 60 * 60 * 24,
'week': 60 * 60 * 24 * 7,
- 'month': 60 * 60 * 24 * 7 * 4}
+ 'month': 60 * 60 * 24 * 7 * 4,
+ 'year': 60 * 60 * 24 * 7 * 52}
def build_flickr_url(user_id, photo_id):