mirror of
https://github.com/searxng/searxng.git
synced 2024-12-30 13:10:30 +00:00
[enh] plugin id
This commit is contained in:
parent
359dfc5ebb
commit
9cb66be29c
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ class PluginStore():
|
||||||
if not hasattr(plugin, plugin_attr):
|
if not hasattr(plugin, plugin_attr):
|
||||||
logger.critical('missing attribute "{0}", cannot load plugin: {1}'.format(plugin_attr, plugin))
|
logger.critical('missing attribute "{0}", cannot load plugin: {1}'.format(plugin_attr, plugin))
|
||||||
exit(3)
|
exit(3)
|
||||||
|
plugin.id = plugin.name.replace(' ', '_')
|
||||||
self.plugins.append(plugin)
|
self.plugins.append(plugin)
|
||||||
|
|
||||||
def call(self, plugin_type, request, *args, **kwargs):
|
def call(self, plugin_type, request, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue