diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-01-31 23:11:45 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-01-31 23:11:45 +0100 |
commit | b19e681cce9cef4993b17d3a89d743208f8d5c05 (patch) | |
tree | a9ea7c3a44c25bc74ac5cbb1e379545be1902a0b /searx/search.py | |
parent | bfd321a7a9cfc6d643fdebe5e7a5824fe70b9aa9 (diff) | |
download | searxng-b19e681cce9cef4993b17d3a89d743208f8d5c05.tar.gz searxng-b19e681cce9cef4993b17d3a89d743208f8d5c05.zip |
[enh] default disabled engines - closes #109
Diffstat (limited to 'searx/search.py')
-rw-r--r-- | searx/search.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/searx/search.py b/searx/search.py index b6cf84e94..c16346f45 100644 --- a/searx/search.py +++ b/searx/search.py @@ -27,7 +27,7 @@ from searx.engines import ( categories, engines ) from searx.languages import language_codes -from searx.utils import gen_useragent +from searx.utils import gen_useragent, get_blocked_engines from searx.query import Query from searx import logger @@ -320,10 +320,7 @@ class Search(object): self.lang = 'all' # set blocked engines - if request.cookies.get('blocked_engines'): - self.blocked_engines = request.cookies['blocked_engines'].split(',') # noqa - else: - self.blocked_engines = [] + self.blocked_engines = get_blocked_engines(engines, request.cookies) self.results = [] self.suggestions = [] |