Browse Source

Merge pull request '创建评测任务,名称错误时返回页面信息' (#1430) from benchmark into V20220125

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/1430
Reviewed-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.1.3
zouap 3 years ago
parent
commit
7cd78e3fa6
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      routers/repo/cloudbrain.go

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

@@ -1200,6 +1200,7 @@ func CloudBrainBenchmarkCreate(ctx *context.Context, form auth.CreateCloudBrainF
benchmarkChildTypeID := form.BenchmarkChildTypeID benchmarkChildTypeID := form.BenchmarkChildTypeID


if !jobNamePattern.MatchString(jobName) { if !jobNamePattern.MatchString(jobName) {
cloudBrainNewDataPrepare(ctx)
ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_jobname_err"), tplCloudBrainBenchmarkNew, &form) ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_jobname_err"), tplCloudBrainBenchmarkNew, &form)
return return
} }


Loading…
Cancel
Save