Browse Source

fix-3220

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

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

@@ -764,7 +764,7 @@ func CloudbrainGetLog(ctx *context.APIContext) {
if (job.JobType == string(models.JobTypeTrain) || job.JobType == string(models.JobTypeInference)) && job.Type == models.TypeCloudBrainOne && job.Status == string(models.JobFailed) {
if ctx.Data["existStr"] != nil {
content = content + ctx.Data["existStr"].(string)
if baseLine == "" && order == "desc" {
if baseLine == "" && order == "desc" && result["Lines"].(int) == 0 {
result["Lines"] = 1
result["EndLine"] = 1
}


Loading…
Cancel
Save