1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-12-18 08:27:03 +02:00

Fix array

This commit is contained in:
Piero Toffanin 2022-12-09 16:38:58 -05:00
parent e79089b5c1
commit 6621c51b52

View File

@ -273,7 +273,7 @@ def create_app(args):
type: string
description: Human-readable language name (in English)
"""
return jsonify([{"code": l.code, "name": l.name, "targets": [language_pairs.get(l.code, [])]} for l in languages])
return jsonify([{"code": l.code, "name": l.name, "targets": language_pairs.get(l.code, [])} for l in languages])
# Add cors
@app.after_request