Browse Source

Merge branch 'fix-1985' of https://git.openi.org.cn/OpenI/aiforge into fix-1985

tags/v1.22.5.1^2
zhoupzh 3 years ago
parent
commit
c83e3501da
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      routers/repo/cloudbrain.go

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

@@ -1680,6 +1680,7 @@ func CloudBrainBenchmarkIndex(ctx *context.Context) {
}
ciTasks[i].TrainJobDuration = models.ConvertDurationToStr(ciTasks[i].Duration)
}
ciTasks[i].BenchmarkTypeName = ""
if ciTasks[i].JobType == string(models.JobTypeBenchmark) {
ciTasks[i].BenchmarkType = ctx.Tr("repo.cloudbrain.benchmark.algorithm")
} else if ciTasks[i].JobType == string(models.JobTypeSnn4imagenet) || ciTasks[i].JobType == string(models.JobTypeBrainScore) {
@@ -1693,7 +1694,7 @@ func CloudBrainBenchmarkIndex(ctx *context.Context) {
}

}
ciTasks[i].BenchmarkTypeName = ""
if task.BenchmarkTypeID > 0 {
for _, benchmarkType := range GetBenchmarkTypes(ctx).BenchmarkType {
if task.BenchmarkTypeID == benchmarkType.Id {


Loading…
Cancel
Save