mirror of https://github.com/searx/searx
[fix] allow none as category in preferences - #1086
This commit is contained in:
parent
5ceaf21399
commit
128eb76604
|
@ -246,7 +246,7 @@ class Preferences(object):
|
||||||
def __init__(self, themes, categories, engines, plugins):
|
def __init__(self, themes, categories, engines, plugins):
|
||||||
super(Preferences, self).__init__()
|
super(Preferences, self).__init__()
|
||||||
|
|
||||||
self.key_value_settings = {'categories': MultipleChoiceSetting(['general'], choices=categories),
|
self.key_value_settings = {'categories': MultipleChoiceSetting(['general'], choices=categories + ['none']),
|
||||||
'language': SearchLanguageSetting(settings['search']['language'],
|
'language': SearchLanguageSetting(settings['search']['language'],
|
||||||
choices=LANGUAGE_CODES),
|
choices=LANGUAGE_CODES),
|
||||||
'locale': EnumStringSetting(settings['ui']['default_locale'],
|
'locale': EnumStringSetting(settings['ui']['default_locale'],
|
||||||
|
|
Loading…
Reference in New Issue