Skip to content

Commit

Permalink
Update Workflow class to fix file download link
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenAnpu committed Jul 29, 2024
1 parent 82e022a commit 7d44a5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ def add_output(self, file_info: sly.api.file_api.FileInfo):
"backgroundColor": "#d9f7e4",
},
"title": f"<h4>{file_info.name}</h4>",
"mainLink": {"url": f"{file_info.full_storage_url}", "title": "Download"},
"mainLink": {
"url": f"<a href='{file_info.full_storage_url}' download='{file_info.name}'></a>",
"title": "Download",
},
}
}
self.api.app.workflow.add_output_file(file_info, meta=meta)
Expand Down

0 comments on commit 7d44a5b

Please sign in to comment.