diff options
Diffstat (limited to 'models/db/list_options.go')
-rw-r--r-- | models/db/list_options.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/db/list_options.go b/models/db/list_options.go index d1d52b6667..54f6d945c8 100644 --- a/models/db/list_options.go +++ b/models/db/list_options.go @@ -58,7 +58,7 @@ func (opts *ListOptions) GetSkipTake() (skip, take int) { func (opts *ListOptions) GetStartEnd() (start, end int) { start, take := opts.GetSkipTake() end = start + take - return + return start, end } // SetDefaultValues sets default values |