Browse Source

opt for download link

tags/v1.22.2.2^2
lewis 3 years ago
parent
commit
5f76b7f3ec
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/modelarts.go

+ 2
- 2
routers/repo/modelarts.go View File

@@ -256,7 +256,7 @@ func NotebookShow(ctx *context.Context) {
result.LatestUpdateTime = time.Unix(int64(result.UpdateAt/1000), 0).Format("2006-01-02 15:04:05")
}

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


Loading…
Cancel
Save