diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-03-11 01:42:25 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-03-11 01:42:25 +0100 |
commit | 9cb66be29c287357e9b7135fe8840aa8b5979972 (patch) | |
tree | 43e1610c6e56d345089b809e749bb23a4e50a32c | |
parent | 359dfc5ebb011f8c241fbfa16ec34fcbec844064 (diff) | |
download | searxng-9cb66be29c287357e9b7135fe8840aa8b5979972.tar.gz searxng-9cb66be29c287357e9b7135fe8840aa8b5979972.zip |
[enh] plugin id
-rw-r--r-- | searx/plugins/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py index 9c9c52ae4..61ec211e4 100644 --- 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): |