Pārlūkot izejas kodu

[fix] allow empty autocomplete setting

closes #756
closes #761
Adam Tauber 8 gadus atpakaļ
vecāks
revīzija
96f182d75d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      searx/preferences.py

+ 1
- 1
searx/preferences.py Parādīt failu

@@ -218,7 +218,7 @@ class Preferences(object):
218 218
                                    'locale': EnumStringSetting(settings['ui']['default_locale'],
219 219
                                                                choices=settings['locales'].keys()),
220 220
                                    'autocomplete': EnumStringSetting(settings['search']['autocomplete'],
221
-                                                                     choices=autocomplete.backends.keys()),
221
+                                                                     choices=autocomplete.backends.keys() + ['']),
222 222
                                    'image_proxy': MapSetting(settings['server']['image_proxy'],
223 223
                                                              map={'': settings['server']['image_proxy'],
224 224
                                                                   '0': False,