summaryrefslogtreecommitdiff
path: root/searx/preferences.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-11-14 16:17:11 +0100
committerAdam Tauber <asciimoo@gmail.com>2016-11-14 16:17:11 +0100
commit96f182d75d76a77457137abd89b3cc374c26aa9f (patch)
tree70603a03b73f2f7fbd6dff371bf7e5c16e221393 /searx/preferences.py
parent43ddbc60da114e3c764e6f7fa344e686964b66c2 (diff)
downloadsearxng-96f182d75d76a77457137abd89b3cc374c26aa9f.tar.gz
searxng-96f182d75d76a77457137abd89b3cc374c26aa9f.zip
[fix] allow empty autocomplete setting
closes #756 closes #761
Diffstat (limited to 'searx/preferences.py')
-rw-r--r--searx/preferences.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index ed7b6f6cd..8b787fc59 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -218,7 +218,7 @@ class Preferences(object):
'locale': EnumStringSetting(settings['ui']['default_locale'],
choices=settings['locales'].keys()),
'autocomplete': EnumStringSetting(settings['search']['autocomplete'],
- choices=autocomplete.backends.keys()),
+ choices=autocomplete.backends.keys() + ['']),
'image_proxy': MapSetting(settings['server']['image_proxy'],
map={'': settings['server']['image_proxy'],
'0': False,