mirror of
https://github.com/searx/searx
synced 2024-12-14 13:10:20 +01: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):
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user