Browse Source

去除云脑1调试任务名限制

pull/1406/head
liuzx 4 years ago
parent
commit
6355766298
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      routers/repo/cloudbrain.go

+ 4
- 4
routers/repo/cloudbrain.go View File

@@ -190,10 +190,10 @@ func CloudBrainCreate(ctx *context.Context, form auth.CreateCloudBrainForm) {
}
}

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

if jobType != string(models.JobTypeBenchmark) && jobType != string(models.JobTypeDebug) && jobType != string(models.JobTypeSnn4imagenet) && jobType != string(models.JobTypeBrainScore) {
log.Error("jobtype error:", jobType, ctx.Data["MsgID"])


Loading…
Cancel
Save