commit: 128eb76604c1cbea867c7f0cf43f38df7edca190
parent: 5ceaf2139930f6f902970e3beea87493579a7a2d
Author: Adam Tauber <asciimoo@gmail.com>
Date: Tue, 21 Nov 2017 13:39:07 +0100
[fix] allow none as category in preferences - #1086
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/searx/preferences.py b/searx/preferences.py
@@ -246,7 +246,7 @@ class Preferences(object):
def __init__(self, themes, categories, engines, plugins):
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'],
choices=LANGUAGE_CODES),
'locale': EnumStringSetting(settings['ui']['default_locale'],