You've already forked my-video-workflow
关联关系修改
This commit is contained in:
@ -2,11 +2,15 @@ import os.path
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from . import db
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .Workflow import Workflow
|
||||
from .DanmakuClip import DanmakuClip
|
||||
|
||||
|
||||
class VideoClip(db.Model):
|
||||
danmaku_clips: list["DanmakuClip"]
|
||||
|
||||
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
|
||||
base_path = db.Column(db.String(255))
|
||||
file = db.Column(db.String(255))
|
||||
@ -30,4 +34,5 @@ class VideoClip(db.Model):
|
||||
"duration": self.duration,
|
||||
"offset": self.offset,
|
||||
"workflow_id": self.workflow_id,
|
||||
"danmaku_clips": [i.to_json() for i in self.danmaku_clips],
|
||||
}
|
||||
|
Reference in New Issue
Block a user