From 6621c51b52947085f31f63d04decf58ec3583c76 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 9 Dec 2022 16:38:58 -0500 Subject: [PATCH] Fix array --- app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.py b/app/app.py index 70b5677..aef8242 100644 --- a/app/app.py +++ b/app/app.py @@ -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