From f83b64270c6c8cff336889b93fdf6b6e3f20ffa2 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 1 Jun 2021 16:21:56 +0200 Subject: [mod] oscar theme /preferences: reorganize the preferences close #115 --- searx/plugins/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'searx/plugins/__init__.py') diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py index 22f475875..f9fb3aa58 100644 --- a/searx/plugins/__init__.py +++ b/searx/plugins/__init__.py @@ -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): -- cgit v1.2.3