Browse Source

fix-3108

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

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

@@ -658,16 +658,10 @@ func CloudbrainGetLog(ctx *context.APIContext) {
if result["Content"] != nil {
content = result["Content"].(string)
}
// if job.JobType == string(models.JobTypeModelSafety) {
if ctx.Data["existStr"] != nil && result["Lines"].(int) < 50 {
content = content + ctx.Data["existStr"].(string)
}
// }
// if job.JobType == string(models.JobTypeTrain) || job.JobType == string(models.JobTypeInference) {
// if ctx.Data["existStr"] != nil {
// content = content + ctx.Data["existStr"].(string)
// }
// }

logFileName := result["FileName"]



Loading…
Cancel
Save