Skip to content

Commit

Permalink
Update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenAnpu committed Aug 13, 2024
1 parent 3834355 commit 3809ae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ def workflow_output(api: sly.Api, file: Union[int, sly.api.file_api.FileInfo]):
try:
if isinstance(file, int):
file = api.file.get_info_by_id(file)
relation_settings = sly.app.WorkflowSettings(
relation_settings = sly.WorkflowSettings(
title=file.name,
icon="archive",
color="#33c94c",
background_color="#d9f7e4",
url=f"/files/{file.id}/true/?teamId={file.team_id}",
url_title="Download",
)
meta = sly.app.WorkflowMeta.create_as_dict(relation_settings=relation_settings)
meta = sly.WorkflowMeta.create_as_dict(relation_settings=relation_settings)
api.app.workflow.add_output_file(file, meta=meta)
sly.logger.debug(f"Workflow: Output file - {file}")
except Exception as e:
Expand Down

0 comments on commit 3809ae1

Please sign in to comment.