Browse Source

fix-bug

tags/v1.22.1.2
liuzx 3 years ago
parent
commit
487a235b19
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      routers/repo/modelarts.go

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

@@ -1962,7 +1962,14 @@ func InferenceJobShow(ctx *context.Context) {
ctx.Data["jobID"] = jobID
ctx.Data["jobName"] = task.JobName
ctx.Data["task"] = task
ctx.Data["userName"] = ctx.User.Name

tempUids := []int64{}
tempUids = append(tempUids, task.UserID)
JobCreater, err := models.GetUserNamesByIDs(tempUids)
if err != nil {
log.Error("GetUserNamesByIDs (WhitelistUserIDs): %v", err)
}
ctx.Data["userName"] = JobCreater[0]
ctx.HTML(http.StatusOK, tplModelArtsInferenceJobShow)
}



Loading…
Cancel
Save