Skip to content

Commit

Permalink
Update Workflow class to include file title in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenAnpu committed Jul 29, 2024
1 parent 72861b3 commit 82e022a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def add_output(self, file_info: sly.api.file_api.FileInfo):
"mainLink": {"url": f"{file_info.full_storage_url}", "title": "Download"},
}
}
self.api.app.workflow.add_output_file(file_info, meta)
self.api.app.workflow.add_output_file(file_info, meta=meta)
sly.logger.debug(f"Workflow: Output file - {file_info.id if file_info else None}")
except Exception as e:
sly.logger.debug(f"Workflow: Can not add output file. Error: {repr(e)}")

0 comments on commit 82e022a

Please sign in to comment.