mirror of
https://github.com/go-gitea/gitea
synced 2025-01-03 07:16:03 +01:00
end is start + pageSize and not start + page Co-authored-by: sebastian-sauer <sauer.sebastian@gmail.com>
This commit is contained in:
parent
c7db7438b7
commit
50084daa4c
@ -41,7 +41,7 @@ func (opts *ListOptions) setEnginePagination(e Engine) Engine {
|
|||||||
func (opts *ListOptions) GetStartEnd() (start, end int) {
|
func (opts *ListOptions) GetStartEnd() (start, end int) {
|
||||||
opts.setDefaultValues()
|
opts.setDefaultValues()
|
||||||
start = (opts.Page - 1) * opts.PageSize
|
start = (opts.Page - 1) * opts.PageSize
|
||||||
end = start + opts.Page
|
end = start + opts.PageSize
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user