mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-30 06:38:37 -04:00 
			
		
		
		
	Fix list_options GetStartEnd (#16303)
end is start + pageSize and not start + page
This commit is contained in:
		| @@ -41,7 +41,7 @@ func (opts *ListOptions) setEnginePagination(e Engine) Engine { | ||||
| func (opts *ListOptions) GetStartEnd() (start, end int) { | ||||
| 	opts.setDefaultValues() | ||||
| 	start = (opts.Page - 1) * opts.PageSize | ||||
| 	end = start + opts.Page | ||||
| 	end = start + opts.PageSize | ||||
| 	return | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user