From b1f41f658377d226b758bb73fde08ed9c1f1171b 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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/gn_module_zh/blueprint.py b/backend/gn_module_zh/blueprint.py index 8641583b..ca334270 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( - { + 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"])