logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: 996c797ab22a63f5899129c2236d728f2f6532df
parent: 1de781a143270c8f1f98a04b688b8546ad341ec5
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Tue,  3 Feb 2015 18:48:52 +0100

[fix] default blocked categories

Diffstat:

searx/utils.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/searx/utils.py b/searx/utils.py @@ -231,7 +231,8 @@ def prettify_url(url): def get_blocked_engines(engines, cookies): if 'blocked_engines' not in cookies: - return [(engine, category) for engine in engines for category in engines.category if engines[engine].disabled] + return [(engine_name, category) for engine_name in engines + for category in engines[engine_name].categories if engines[engine_name].disabled] blocked_engine_strings = cookies.get('blocked_engines', '').split(',') blocked_engines = []