mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
Merge pull request #1084 from moon2l/master
fix bug: TypeError: set(['bing', 'google']) is not JSON serializable,…
This commit is contained in:
commit
5ceaf21399
@ -541,7 +541,8 @@ def index():
|
|||||||
'corrections': list(result_container.corrections),
|
'corrections': list(result_container.corrections),
|
||||||
'infoboxes': result_container.infoboxes,
|
'infoboxes': result_container.infoboxes,
|
||||||
'suggestions': list(result_container.suggestions),
|
'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')
|
mimetype='application/json')
|
||||||
elif output_format == 'csv':
|
elif output_format == 'csv':
|
||||||
csv = UnicodeWriter(StringIO())
|
csv = UnicodeWriter(StringIO())
|
||||||
|
Loading…
Reference in New Issue
Block a user