mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-10-30 20:05:42 +08:00
32 lines
671 B
Python
32 lines
671 B
Python
"""
|
|
在工作流执行记录中附加备注。
|
|
"""
|
|
|
|
from app.schemas.workflow import ActionContext
|
|
from app.workflow.actions import BaseAction
|
|
|
|
|
|
class NoteAction(BaseAction):
|
|
"""
|
|
备注
|
|
"""
|
|
|
|
contract = {}
|
|
|
|
name = "备注"
|
|
description = "给工作流添加备注"
|
|
data = {}
|
|
|
|
@property
|
|
def success(self) -> bool:
|
|
"""
|
|
返回当前动作是否已达到完成条件。
|
|
"""
|
|
return True
|
|
|
|
def execute(self, workflow_id: int, params: dict[str, object], context: ActionContext) -> ActionContext:
|
|
"""
|
|
备注不处理输入,原样保留工作流上下文。
|
|
"""
|
|
return context
|