Merge remote-tracking branch 'origin/dev-1.1-patch-1' into development
This commit is contained in:
commit
a9fef7d136
1 changed files with 6 additions and 1 deletions
|
@ -168,8 +168,13 @@ public interface LmsAPIService {
|
||||||
quizzes.subList(start, end));
|
quizzes.subList(start, end));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final int mod = quizzes.size() % pageSize;
|
||||||
return new Page<>(
|
return new Page<>(
|
||||||
(quizzes.size() <= pageSize) ? 1 : quizzes.size() / pageSize + 1,
|
(quizzes.size() <= pageSize)
|
||||||
|
? 1
|
||||||
|
: (mod > 0)
|
||||||
|
? quizzes.size() / pageSize + 1
|
||||||
|
: quizzes.size() / pageSize,
|
||||||
pageNumber,
|
pageNumber,
|
||||||
sortAttribute,
|
sortAttribute,
|
||||||
quizzes.subList(start, end));
|
quizzes.subList(start, end));
|
||||||
|
|
Loading…
Reference in a new issue