You've already forked my-video-workflow
删除接口逻辑
This commit is contained in:
@ -2,9 +2,9 @@ import os
|
||||
|
||||
from flask import Blueprint, jsonify, request
|
||||
|
||||
from model import db
|
||||
from model.DanmakuClip import DanmakuClip
|
||||
from util.flask import not_found_json_response, error_json_response
|
||||
from model import db
|
||||
|
||||
blueprint = Blueprint("api_danmaku_clip", __name__, url_prefix="/api/danmaku_clip")
|
||||
|
||||
@ -52,5 +52,5 @@ def delete_video_clip(danmaku_clip_id):
|
||||
db.session.commit()
|
||||
return jsonify({
|
||||
"id": danmaku_clip_id,
|
||||
"old_data": danmaku_clip
|
||||
"old_data": danmaku_clip.to_json() if danmaku_clip is not None else {}
|
||||
})
|
||||
|
Reference in New Issue
Block a user