|
|
@@ -257,13 +257,15 @@ func NotebookShow(ctx *context.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
var datasetDownloadLink string |
|
|
|
if task.Uuid != "" && task.UserID == ctx.User.ID { |
|
|
|
attachment, err := models.GetAttachmentByUUID(task.Uuid) |
|
|
|
if err == nil { |
|
|
|
datasetDownloadLink = attachment.S3DownloadURL() |
|
|
|
if ctx.IsSigned { |
|
|
|
if task.Uuid != "" && task.UserID == ctx.User.ID { |
|
|
|
attachment, err := models.GetAttachmentByUUID(task.Uuid) |
|
|
|
if err == nil { |
|
|
|
datasetDownloadLink = attachment.S3DownloadURL() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ctx.Data["datasetDownloadLink"] = datasetDownloadLink |
|
|
|
ctx.Data["task"] = task |
|
|
|
ctx.Data["jobID"] = jobID |
|
|
|