Browse Source

Merge branch 'multi-dataset' of git.openi.org.cn:OpenI/aiforge into multi-dataset

pull/2422/head
lewis 3 years ago
parent
commit
0f385421b1
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      routers/repo/modelarts.go

+ 1
- 4
routers/repo/modelarts.go View File

@@ -285,7 +285,6 @@ func NotebookShow(ctx *context.Context) {
}
}

datasetDownloadLink := ""
datasetDownload := make([]models.DatasetDownload, 0)
if ctx.IsSigned {
if task.Uuid != "" && task.UserID == ctx.User.ID {
@@ -293,10 +292,9 @@ func NotebookShow(ctx *context.Context) {
for _, uuidStr := range uuidList {
attachment, err := models.GetAttachmentByUUID(uuidStr)
if err == nil {
datasetDownloadLink = datasetDownloadLink + attachment.S3DownloadURL()
datasetDownload = append(datasetDownload, models.DatasetDownload{
DatasetName: attachment.Name,
DatasetDownloadLink: datasetDownloadLink,
DatasetDownloadLink: attachment.S3DownloadURL(),
})
}
}
@@ -335,7 +333,6 @@ func NotebookShow(ctx *context.Context) {
task.TrainJobDuration = models.ConvertDurationToStr(task.Duration)
}
ctx.Data["duration"] = task.TrainJobDuration
ctx.Data["datasetDownloadLink"] = datasetDownloadLink
ctx.Data["datasetDownload"] = datasetDownload
ctx.Data["task"] = task
ctx.Data["ID"] = ID


Loading…
Cancel
Save