diff options
author | Alexandre Flament <alex@al-f.net> | 2021-09-13 19:37:51 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-10-06 19:18:19 +0200 |
commit | 2b4fef71186be1e4a9ce160ddfa6707e2f138a3e (patch) | |
tree | f1e3037e04a533849bcd1834e35b2b4af93f87da /searx/settings_defaults.py | |
parent | adeb084cf4ffc59f1e49b47d049e7541be6dd5dd (diff) | |
download | searxng-2b4fef71186be1e4a9ce160ddfa6707e2f138a3e.tar.gz searxng-2b4fef71186be1e4a9ce160ddfa6707e2f138a3e.zip |
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.
Diffstat (limited to 'searx/settings_defaults.py')
-rw-r--r-- | searx/settings_defaults.py | 4 |
1 files changed, 2 insertions, 2 deletions
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), }, |