mirror of
				https://github.com/searxng/searxng.git
				synced 2025-10-30 10:12:31 -04:00 
			
		
		
		
	fix bug: TypeError: set(['bing', 'google']) is not JSON serializable, when curl 'http://127.0.0.1:8888/?q=xxxxxxxx&categories=general&format=json'
This commit is contained in:
		
							parent
							
								
									84e7b8bad1
								
							
						
					
					
						commit
						ed1c78d923
					
				| @ -541,7 +541,8 @@ def index(): | ||||
|                                     'corrections': list(result_container.corrections), | ||||
|                                     'infoboxes': result_container.infoboxes, | ||||
|                                     'suggestions': list(result_container.suggestions), | ||||
|                                     'unresponsive_engines': list(result_container.unresponsive_engines)}), | ||||
|                                     'unresponsive_engines': list(result_container.unresponsive_engines)}, | ||||
|                                    default=lambda item: list(item) if isinstance(item, set) else item), | ||||
|                         mimetype='application/json') | ||||
|     elif output_format == 'csv': | ||||
|         csv = UnicodeWriter(StringIO()) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user