mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Merge pull request #555 from imZack/master
Fix 'set' object does not support indexing
This commit is contained in:
		
						commit
						9247b1e777
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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…
	
	Add table
		
		Reference in a new issue
	
	 Adam Tauber
						Adam Tauber