Browse Source

add branch name

pull/971/head
lewis 3 years ago
parent
commit
f633bf4d57
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      routers/repo/modelarts.go

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

@@ -370,6 +370,7 @@ func trainJobNewDataPrepare(ctx *context.Context) error {
ctx.Data["Branches"] = Branches ctx.Data["Branches"] = Branches
ctx.Data["BranchesCount"] = len(Branches) ctx.Data["BranchesCount"] = len(Branches)
ctx.Data["params"] = "" ctx.Data["params"] = ""
ctx.Data["BranchName"] = ctx.Repo.BranchName


configList, err := getConfigList(modelarts.PerPage, 1, modelarts.SortByCreateTime, "desc", "", modelarts.ConfigTypeCustom) configList, err := getConfigList(modelarts.PerPage, 1, modelarts.SortByCreateTime, "desc", "", modelarts.ConfigTypeCustom)
if err != nil { if err != nil {


Loading…
Cancel
Save