summaryrefslogtreecommitdiff
path: root/searx/preferences.py
diff options
context:
space:
mode:
authorrenyhp <renyhp@disroot.org>2020-11-23 19:13:29 +0100
committerrenyhp <renyhp@disroot.org>2020-11-23 19:13:29 +0100
commit22489c4b5f927af5d74b3670b917aee0732543cc (patch)
tree575e2ad2ba8e77f27a96d86b325110eebca8c021 /searx/preferences.py
parentb00f77059c93bc91f706b5f0c51f7db752669b09 (diff)
downloadsearxng-22489c4b5f927af5d74b3670b917aee0732543cc.tar.gz
searxng-22489c4b5f927af5d74b3670b917aee0732543cc.zip
Patch advanced search preferences
Diffstat (limited to 'searx/preferences.py')
-rw-r--r--searx/preferences.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index b37f0104a..a9f16ff78 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -397,11 +397,13 @@ class Preferences:
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
+ 'True': True,
+ 'on': True,
}
),
}