diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-02-03 18:48:52 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-02-03 18:48:52 +0100 |
commit | 996c797ab22a63f5899129c2236d728f2f6532df (patch) | |
tree | b5c52b0841003051529f172adf99ec77006687e0 /searx/utils.py | |
parent | 1de781a143270c8f1f98a04b688b8546ad341ec5 (diff) | |
download | searxng-996c797ab22a63f5899129c2236d728f2f6532df.tar.gz searxng-996c797ab22a63f5899129c2236d728f2f6532df.zip |
[fix] default blocked categories
Diffstat (limited to 'searx/utils.py')
-rw-r--r-- | searx/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 = [] |