From 128eb76604c1cbea867c7f0cf43f38df7edca190 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 21 Nov 2017 13:39:07 +0100 Subject: [PATCH] [fix] allow none as category in preferences - #1086 --- searx/preferences.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/preferences.py b/searx/preferences.py index 1a143db6b..dde4f098a 100644 --- 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'],