mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[enh] plugin id
This commit is contained in:
parent
359dfc5ebb
commit
9cb66be29c
@ -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 New Issue
Block a user