From 2b4fef71186be1e4a9ce160ddfa6707e2f138a3e Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Mon, 13 Sep 2021 19:37:51 +0200 Subject: plugins: refactor initialization add a new function "init" call when the app starts. The function can: * return False to disable the plugin. * modify the Flask app. --- searx/settings_defaults.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searx/settings_defaults.py') diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index 9284f3050..49462ccb4 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -200,8 +200,8 @@ SCHEMA = { 'networks': { }, }, - 'plugins': SettingsValue((None, list), None), - 'enabled_plugins': SettingsValue(list, []), + 'plugins': SettingsValue(list, []), + 'enabled_plugins': SettingsValue((None, list), None), 'checker': { 'off_when_debug': SettingsValue(bool, True), }, -- cgit v1.2.3