summaryrefslogtreecommitdiff
path: root/searx/plugins
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-03-10 20:44:02 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-03-10 20:44:02 +0100
commitcae22bfc7609d00f987e679cf6d048873d268d84 (patch)
tree4ff49f22ffe5cd52fdb11af5cc254eb9e031ce75 /searx/plugins
parent00cc4dcbf44d9ecea89befb08cae4ee5561c4247 (diff)
downloadsearxng-cae22bfc7609d00f987e679cf6d048873d268d84.tar.gz
searxng-cae22bfc7609d00f987e679cf6d048873d268d84.zip
[enh] per user plugin switch
Diffstat (limited to 'searx/plugins')
-rw-r--r--searx/plugins/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py
index b40d2ee89..9c9c52ae4 100644
--- a/searx/plugins/__init__.py
+++ b/searx/plugins/__init__.py
@@ -20,7 +20,7 @@ class PluginStore():
self.plugins = []
def __iter__(self):
- for plugin in plugins:
+ for plugin in self.plugins:
yield plugin
def register(self, *plugins):
@@ -33,7 +33,7 @@ class PluginStore():
def call(self, plugin_type, request, *args, **kwargs):
ret = True
- for plugin in self.plugins:
+ for plugin in request.user_plugins:
if hasattr(plugin, plugin_type):
ret = getattr(plugin, plugin_type)(request, *args, **kwargs)
if not ret: