|
|
|
@@ -254,10 +254,17 @@ func NotebookShow(ctx *context.Context) { |
|
|
|
|
|
|
|
result.CreateTime = time.Unix(int64(result.CreateAt/1000), 0).Format("2006-01-02 15:04:05") |
|
|
|
result.LatestUpdateTime = time.Unix(int64(result.UpdateAt/1000), 0).Format("2006-01-02 15:04:05") |
|
|
|
//result.QueuingInfo.BeginTime = time.Unix(int64(result.QueuingInfo.BeginTimestamp/1000), 0).Format("2006-01-02 15:04:05") |
|
|
|
//result.QueuingInfo.EndTime = time.Unix(int64(result.QueuingInfo.EndTimestamp/1000), 0).Format("2006-01-02 15:04:05") |
|
|
|
} |
|
|
|
|
|
|
|
var datasetDownloadLink string |
|
|
|
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 |
|
|
|
ctx.Data["jobName"] = task.JobName |
|
|
|
|