|
|
|
@@ -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") |
|
|
|
|
|
|
|
|