From 996c797ab22a63f5899129c2236d728f2f6532df Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 3 Feb 2015 18:48:52 +0100 Subject: [PATCH] [fix] default blocked categories --- searx/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/searx/utils.py b/searx/utils.py index a42458829..e6c107e24 100644 --- 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 = []