mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-11-16 05:10:53 +08:00
24 lines
583 B
Python
24 lines
583 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
|