mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-30 04:27:40 +08:00
22 lines
435 B
Python
22 lines
435 B
Python
from app.workflow.actions import BaseAction
|
|
from app.schemas.workflow import ActionContext
|
|
|
|
|
|
class NoteAction(BaseAction):
|
|
"""
|
|
备注
|
|
"""
|
|
|
|
contract = {}
|
|
|
|
name = "备注"
|
|
description = "给工作流添加备注"
|
|
data = {}
|
|
|
|
@property
|
|
def success(self) -> bool:
|
|
return True
|
|
|
|
def execute(self, workflow_id: int, params: dict, context: ActionContext) -> ActionContext:
|
|
return context
|