mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-14 09:19:40 +00:00
Add workflow_title to WorkflowRun (#1731)
This commit is contained in:
parent
cc449dc9de
commit
c330c6a455
4 changed files with 30 additions and 11 deletions
|
@ -192,7 +192,9 @@ def convert_to_workflow(workflow_model: WorkflowModel, debug_enabled: bool = Fal
|
|||
)
|
||||
|
||||
|
||||
def convert_to_workflow_run(workflow_run_model: WorkflowRunModel, debug_enabled: bool = False) -> WorkflowRun:
|
||||
def convert_to_workflow_run(
|
||||
workflow_run_model: WorkflowRunModel, workflow_title: str | None = None, debug_enabled: bool = False
|
||||
) -> WorkflowRun:
|
||||
if debug_enabled:
|
||||
LOG.debug(
|
||||
"Converting WorkflowRunModel to WorkflowRun",
|
||||
|
@ -215,6 +217,7 @@ def convert_to_workflow_run(workflow_run_model: WorkflowRunModel, debug_enabled:
|
|||
totp_identifier=workflow_run_model.totp_identifier,
|
||||
created_at=workflow_run_model.created_at,
|
||||
modified_at=workflow_run_model.modified_at,
|
||||
workflow_title=workflow_title,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue