Browse Source

fix-bug

tags/v1.22.6.1^2
liuzx 4 years ago
parent
commit
69477fafb2
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      routers/api/v1/repo/cloudbrain_dashboard.go

+ 2
- 4
routers/api/v1/repo/cloudbrain_dashboard.go View File

@@ -11,8 +11,6 @@ import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
"github.com/360EntSecGroup-Skylar/excelize/v2"

"code.gitea.io/gitea/modules/setting"
)

type DateCloudbrainNum struct {
@@ -613,7 +611,7 @@ func GetCloudbrainsDetailData(ctx *context.Context) {
cloudBrainType := ctx.QueryInt("Type")

page := ctx.QueryInt("page")
pageSize := ctx.QueryInt("pageSize")
pageSize := ctx.QueryInt("pagesize")
if page <= 0 {
page = 1
}
@@ -715,7 +713,7 @@ func GetCloudbrainsDetailData(ctx *context.Context) {
tasks = append(tasks, taskDetail)
}

pager := context.NewPagination(int(count), setting.UI.IssuePagingNum, page, getTotalPage(count, setting.UI.IssuePagingNum))
pager := context.NewPagination(int(count), pageSize, page, getTotalPage(count, pageSize))
pager.SetDefaultParams(ctx)
pager.AddParam(ctx, "listType", "ListType")



Loading…
Cancel
Save