You've already forked my-video-workflow
关联关系修改
This commit is contained in:
@ -2,15 +2,14 @@ from datetime import datetime, timedelta
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from . import db
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .VideoClip import VideoClip
|
||||
from .VideoPart import VideoPart
|
||||
from .DanmakuClip import DanmakuClip
|
||||
|
||||
|
||||
class Workflow(db.Model):
|
||||
video_clips: list["VideoClip"]
|
||||
danmaku_clips: list["DanmakuClip"]
|
||||
video_parts: list["VideoPart"]
|
||||
|
||||
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
|
||||
@ -42,5 +41,4 @@ class Workflow(db.Model):
|
||||
"editing": self.editing,
|
||||
"start_after_time": self.start_after_time.strftime("%Y/%m/%d %H:%M:%S") if self.start_after_time else None,
|
||||
"video_clips": [i.to_json() for i in self.video_clips],
|
||||
"danmaku_clips": [i.to_json() for i in self.danmaku_clips],
|
||||
}
|
||||
|
Reference in New Issue
Block a user