summaryrefslogtreecommitdiff
path: root/searx/preferences.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-11-26 17:37:43 +0100
committerGitHub <noreply@github.com>2020-11-26 17:37:43 +0100
commit6ada5bac60f44a09198c9fec642d5c5939982f88 (patch)
treebdd19d5cda3ef1119dea9b2245323ea071b73841 /searx/preferences.py
parentaec6a2656c4af5aa307914b78cb4f46f4238109a (diff)
parent0323606691788ed1fc59c1a825586633f0643e3b (diff)
downloadsearxng-6ada5bac60f44a09198c9fec642d5c5939982f88.tar.gz
searxng-6ada5bac60f44a09198c9fec642d5c5939982f88.zip
Merge pull request #2327 from renyhp/master
Add preference for displaying advanced settings
Diffstat (limited to 'searx/preferences.py')
-rw-r--r--searx/preferences.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index e5ad6ead7..a9f16ff78 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -395,6 +395,17 @@ 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),
+ is_locked('advanced_search'),
+ map={
+ '0': False,
+ '1': True,
+ 'False': False,
+ 'True': True,
+ 'on': True,
+ }
+ ),
}
self.engines = EnginesSetting('engines', choices=engines)