logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 2522254fb2d44e36fe556765fb0b5c851583f05f
parent: fa26afafd877ec655ab40c42e83a92c9be9d279c
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Sat, 21 Jan 2017 20:13:18 +0100

[fix] search time range value check

Diffstat:

Msearx/search.py3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/searx/search.py b/searx/search.py @@ -240,8 +240,7 @@ def get_search_query_from_webapp(preferences, form): query_time_range = form.get('time_range') # check time_range - if not(query_time_range is None)\ - and not (query_time_range in ['', 'day', 'week', 'month', 'year']): + if query_time_range not in [None, '', 'day', 'week', 'month', 'year']: raise SearxParameterException('time_range', query_time_range) # query_engines