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
c396299f94
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      routers/repo/cloudbrain.go

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

@@ -188,7 +188,7 @@ func cloudBrainNewDataPrepare(ctx *context.Context) error {

ctx.Data["cloudbraintype"] = models.TypeCloudBrainOne

ctx.Data["benchmarkType"] = ctx.Query("benchmarkType")
ctx.Data["benchmarkMode"] = ctx.Query("benchmarkMode")

return nil
}
@@ -1743,7 +1743,6 @@ func CloudBrainBenchmarkNew(ctx *context.Context) {
ctx.Data["description"] = ""
ctx.Data["benchmarkTypeID"] = -1
ctx.Data["benchmark_child_types_id_hidden"] = -1
ctx.Data["type"] = ctx.Query("type")
err := cloudBrainNewDataPrepare(ctx)
if err != nil {
ctx.ServerError("get new cloudbrain info failed", err)


Loading…
Cancel
Save