Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1^2
zouap 4 years ago
parent
commit
41569b6692
1 changed files with 4 additions and 8 deletions
  1. +4
    -8
      routers/repo/ai_model_manage.go

+ 4
- 8
routers/repo/ai_model_manage.go View File

@@ -277,7 +277,6 @@ func QueryTrainJobList(ctx *context.Context) {
repoId := ctx.QueryInt64("repoId")

VersionListTasks, count, err := models.QueryModelTrainJobList(repoId)

log.Info("query return count=" + fmt.Sprint(count))

if err != nil {
@@ -393,13 +392,10 @@ func ShowModelPageInfo(ctx *context.Context) {
return
}

pager := context.NewPagination(int(count), setting.UI.IssuePagingNum, page, 5)
pager.SetDefaultParams(ctx)
ctx.Data["Page"] = pager
ctx.Data["PageIsCloudBrain"] = true
ctx.Data["Tasks"] = modelResult

ctx.HTML(200, tplModelManageIndex)
mapInterface := make(map[string]interface{})
mapInterface["data"] = modelResult
mapInterface["count"] = count
ctx.JSON(http.StatusOK, mapInterface)
}

func ModifyModel(id string, description string) error {


Loading…
Cancel
Save