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