mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
Fix 'set' object does not support indexing
This commit is contained in:
parent
e9f56fe3ee
commit
7364455d1f
@ -181,7 +181,7 @@ class EnginesSetting(SwitchableSetting):
|
||||
return [item[len('engine_'):].replace('_', ' ').replace(' ', '__') for item in items]
|
||||
|
||||
def transform_values(self, values):
|
||||
if len(values) == 1 and values[0] == '':
|
||||
if len(values) == 1 and next(iter(values)) == '':
|
||||
return list()
|
||||
transformed_values = []
|
||||
for value in values:
|
||||
|
Loading…
Reference in New Issue
Block a user