diff options
author | Alexandre Flament <alex@al-f.net> | 2017-01-02 12:06:04 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2017-01-02 12:06:04 +0100 |
commit | 84a2c97a653d216690da0000f47582118709d2d7 (patch) | |
tree | c735600400102ff5d96477aaaf1809dfd987be01 /searx/plugins | |
parent | 3d8c9bab9618b4d0cceadfac888af4560f7d3c9b (diff) | |
download | searxng-84a2c97a653d216690da0000f47582118709d2d7.tar.gz searxng-84a2c97a653d216690da0000f47582118709d2d7.zip |
[mod] searx uses flask framework only in webapp.py. Make migration to another framework easier.
Diffstat (limited to 'searx/plugins')
-rw-r--r-- | searx/plugins/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py index 768a510af..011d36260 100644 --- a/searx/plugins/__init__.py +++ b/searx/plugins/__init__.py @@ -63,9 +63,9 @@ class PluginStore(): plugin.id = plugin.name.replace(' ', '_') self.plugins.append(plugin) - def call(self, plugin_type, request, *args, **kwargs): + def call(self, ordered_plugin_list, plugin_type, request, *args, **kwargs): ret = True - for plugin in request.user_plugins: + for plugin in ordered_plugin_list: if hasattr(plugin, plugin_type): ret = getattr(plugin, plugin_type)(request, *args, **kwargs) if not ret: |