1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-11-05 23:40:13 +01: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 type: string
description: Human-readable language name (in English) 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 # Add cors
@app.after_request @app.after_request