diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-02-03 18:37:38 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-02-03 18:37:38 +0100 |
commit | 1de781a143270c8f1f98a04b688b8546ad341ec5 (patch) | |
tree | f9e48a7644e88a2909d0f5e4a2ac251baa4ff9a1 /searx/search.py | |
parent | 268e0516eee10f97891aa8a136fd910460f71660 (diff) | |
download | searxng-1de781a143270c8f1f98a04b688b8546ad341ec5.tar.gz searxng-1de781a143270c8f1f98a04b688b8546ad341ec5.zip |
[enh] category specific engine deactivation - closes #205
Diffstat (limited to 'searx/search.py')
-rw-r--r-- | searx/search.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/search.py b/searx/search.py index c16346f45..1b16ee02f 100644 --- a/searx/search.py +++ b/searx/search.py @@ -411,9 +411,9 @@ class Search(object): # declared under the specific categories for categ in self.categories: self.engines.extend({'category': categ, - 'name': x.name} - for x in categories[categ] - if x.name not in self.blocked_engines) + 'name': engine.name} + for engine in categories[categ] + if (engine.name, categ) not in self.blocked_engines) # do search-request def search(self, request): |