diff options
author | renyhp <renyhp@disroot.org> | 2020-11-22 18:00:21 +0100 |
---|---|---|
committer | renyhp <renyhp@disroot.org> | 2020-11-22 18:16:43 +0100 |
commit | b00f77059c93bc91f706b5f0c51f7db752669b09 (patch) | |
tree | 06fbc91fdd4ef0e1fd23ce1286815c45b5c0a16c /searx/preferences.py | |
parent | 2fc3b17c85512280173bb47f449cc2faa64b0501 (diff) | |
download | searxng-b00f77059c93bc91f706b5f0c51f7db752669b09.tar.gz searxng-b00f77059c93bc91f706b5f0c51f7db752669b09.zip |
Add preference for displaying advanced settings
Diffstat (limited to 'searx/preferences.py')
-rw-r--r-- | searx/preferences.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/searx/preferences.py b/searx/preferences.py index e5ad6ead7..b37f0104a 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -395,6 +395,15 @@ class Preferences: settings['ui'].get('theme_args', {}).get('oscar_style', 'logicodev'), is_locked('oscar-style'), choices=['', 'logicodev', 'logicodev-dark', 'pointhi']), + 'advanced_search': MapSetting( + settings['ui'].get('advanced_search', False), + map={ + '0': False, + '1': True, + 'False': False, + 'True': True + } + ), } self.engines = EnginesSetting('engines', choices=engines) |