From 95d76d3954d0caefe8ad8331a1f3ff46821a1a1d Mon Sep 17 00:00:00 2001 From: Julien Corny Date: Fri, 5 Apr 2024 18:05:33 +0200 Subject: [PATCH] fix bug media json --- backend/gn_module_zh/blueprint.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/backend/gn_module_zh/blueprint.py b/backend/gn_module_zh/blueprint.py index 8641583b..429b9a9d 100644 --- a/backend/gn_module_zh/blueprint.py +++ b/backend/gn_module_zh/blueprint.py @@ -748,13 +748,11 @@ def patch_file(id_media): DB.session.commit() - return jsonify( - { - "media_path": upload_resp["media_path"], - "secured_file_name": upload_resp["secured_file_name"], - "id_media": upload_resp["id_media"], - } - ) + return { + "media_path": upload_resp["media_path"], + "secured_file_name": upload_resp["secured_file_name"], + "id_media": upload_resp["id_media"], + } @blueprint.route("/", methods=["DELETE"])