Browse Source

fix-3108

tags/v1.22.11.2^2
liuzx 2 years ago
parent
commit
951a785bce
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      routers/api/v1/repo/cloudbrain.go

+ 2
- 1
routers/api/v1/repo/cloudbrain.go View File

@@ -662,7 +662,8 @@ func CloudbrainGetLog(ctx *context.APIContext) {
if ctx.Data["existStr"] != nil && result["Lines"].(int) < 50 {
content = content + ctx.Data["existStr"].(string)
}
} else {
}
if job.JobType == string(models.JobTypeTrain) || job.JobType == string(models.JobTypeInference) {
if ctx.Data["existStr"] != nil {
content = content + ctx.Data["existStr"].(string)
}


Loading…
Cancel
Save