current viewpoint screenshot and scrolling n screenshot (#2716)
Co-authored-by: lawyzheng <lawyzheng1106@gmail.com>
This commit is contained in:
@@ -142,6 +142,7 @@ def convert_to_task(task_obj: TaskModel, debug_enabled: bool = False, workflow_p
|
||||
queued_at=task_obj.queued_at,
|
||||
started_at=task_obj.started_at,
|
||||
finished_at=task_obj.finished_at,
|
||||
max_screenshot_scrolling_times=task_obj.max_screenshot_scrolling_times,
|
||||
)
|
||||
return task
|
||||
|
||||
@@ -238,6 +239,7 @@ def convert_to_workflow(workflow_model: WorkflowModel, debug_enabled: bool = Fal
|
||||
persist_browser_session=workflow_model.persist_browser_session,
|
||||
model=workflow_model.model,
|
||||
proxy_location=(ProxyLocation(workflow_model.proxy_location) if workflow_model.proxy_location else None),
|
||||
max_screenshot_scrolling_times=workflow_model.max_screenshot_scrolling_times,
|
||||
version=workflow_model.version,
|
||||
is_saved_task=workflow_model.is_saved_task,
|
||||
description=workflow_model.description,
|
||||
@@ -278,6 +280,7 @@ def convert_to_workflow_run(
|
||||
created_at=workflow_run_model.created_at,
|
||||
modified_at=workflow_run_model.modified_at,
|
||||
workflow_title=workflow_title,
|
||||
max_screenshot_scrolling_times=workflow_run_model.max_screenshot_scrolling_times,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user