commit: 9cb66be29c287357e9b7135fe8840aa8b5979972
parent 359dfc5ebb011f8c241fbfa16ec34fcbec844064
Author: Adam Tauber <asciimoo@gmail.com>
Date: Wed, 11 Mar 2015 01:42:25 +0100
[enh] plugin id
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py
@@ -29,6 +29,7 @@ class PluginStore():
if not hasattr(plugin, plugin_attr):
logger.critical('missing attribute "{0}", cannot load plugin: {1}'.format(plugin_attr, plugin))
exit(3)
+ plugin.id = plugin.name.replace(' ', '_')
self.plugins.append(plugin)
def call(self, plugin_type, request, *args, **kwargs):