mirror of
https://github.com/searxng/searxng.git
synced 2025-08-17 01:06:44 +02:00
parent
92c68fe636
commit
f83b64270c
5 changed files with 164 additions and 130 deletions
|
@ -70,6 +70,8 @@ class PluginStore():
|
|||
if not hasattr(plugin, plugin_attr) or not isinstance(getattr(plugin, plugin_attr), plugin_attr_type):
|
||||
setattr(plugin, plugin_attr, plugin_attr_type())
|
||||
plugin.id = plugin.name.replace(' ', '_')
|
||||
if not hasattr(plugin, 'preference_section'):
|
||||
plugin.preference_section = 'general'
|
||||
self.plugins.append(plugin)
|
||||
|
||||
def call(self, ordered_plugin_list, plugin_type, request, *args, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue