diff options
author | Alexandre Flament <alex@al-f.net> | 2021-11-24 13:10:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 13:10:27 +0100 |
commit | 42c1a938f0c5c5f34c6904f8458dbf4d7c2c1ab6 (patch) | |
tree | e5af4bf8c9a2b7b126fb7aa21af77af4e3647a4a /searx/preferences.py | |
parent | dae165eaa02ff51f6c1aec8c1ab33dfe4aed3797 (diff) | |
parent | 80fb77476fad4b229418c530f3ffda67f357a15a (diff) | |
download | searxng-42c1a938f0c5c5f34c6904f8458dbf4d7c2c1ab6.tar.gz searxng-42c1a938f0c5c5f34c6904f8458dbf4d7c2c1ab6.zip |
Merge pull request #485 from dalf/pref_query_in_title
[mod] new preference: query_in_title
Diffstat (limited to 'searx/preferences.py')
-rw-r--r-- | searx/preferences.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/searx/preferences.py b/searx/preferences.py index 9c549cc01..4d0cc5c0a 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -411,6 +411,17 @@ class Preferences: 'on': True, } ), + 'query_in_title': MapSetting( + settings['ui']['query_in_title'], + is_locked('query_in_title'), + map={ + '': settings['ui']['query_in_title'], + '0': False, + '1': True, + 'True': True, + 'False': False + } + ), } self.engines = EnginesSetting('engines', choices=engines) |