Skip to content

Commit

Permalink
fix bug media json
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Corny authored and edelclaux committed May 21, 2024
1 parent 0cddada commit 95d76d3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions backend/gn_module_zh/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("/<int:id_zh>", methods=["DELETE"])
Expand Down

0 comments on commit 95d76d3

Please sign in to comment.