summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-11-21 13:39:07 +0100
committerAdam Tauber <asciimoo@gmail.com>2017-11-21 15:27:16 +0100
commit128eb76604c1cbea867c7f0cf43f38df7edca190 (patch)
tree82fb19724f87d84f45d804a6508370b02df36524 /searx
parent5ceaf2139930f6f902970e3beea87493579a7a2d (diff)
downloadsearxng-128eb76604c1cbea867c7f0cf43f38df7edca190.tar.gz
searxng-128eb76604c1cbea867c7f0cf43f38df7edca190.zip
[fix] allow none as category in preferences - #1086
Diffstat (limited to 'searx')
-rw-r--r--searx/preferences.py2
1 files changed, 1 insertions, 1 deletions
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'],