|
|
|
@@ -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 { |
|
|
|
|