moodle API
This commit is contained in:
parent
8da7954256
commit
74dd42759d
1 changed files with 8 additions and 1 deletions
|
@ -207,7 +207,14 @@ public class MoodleCourseAccess extends CourseAccess {
|
|||
}
|
||||
|
||||
private List<CourseData> getAllQuizzes(final MoodleAPIRestTemplate restTemplate) {
|
||||
return getQuizzesBatch(restTemplate, 0);
|
||||
final List<CourseData> result = new ArrayList<>();
|
||||
for (int i = 0; i < 10; i++) {
|
||||
|
||||
log.info("************* page: {}", i);
|
||||
|
||||
result.addAll(getQuizzesBatch(restTemplate, i));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private List<CourseData> getQuizzesBatch(final MoodleAPIRestTemplate restTemplate, final int page) {
|
||||
|
|
Loading…
Reference in a new issue