Skip to content

Commit fe53c3e

Browse files
sebastian-sauerAbdulrhmnGhanem
authored andcommitted
Fix list_options GetStartEnd (go-gitea#16303)
end is start + pageSize and not start + page
1 parent 0e31fce commit fe53c3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/list_options.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (opts *ListOptions) setEnginePagination(e Engine) Engine {
4141
func (opts *ListOptions) GetStartEnd() (start, end int) {
4242
opts.setDefaultValues()
4343
start = (opts.Page - 1) * opts.PageSize
44-
end = start + opts.Page
44+
end = start + opts.PageSize
4545
return
4646
}
4747

0 commit comments

Comments
 (0)