get page of 1000
This commit is contained in:
parent
7eeb133a74
commit
5f39d02b07
1 changed files with 2 additions and 2 deletions
|
@ -243,7 +243,7 @@ public class MoodleCourseAccess extends CourseAccess {
|
||||||
|
|
||||||
// first get courses from Moodle for page
|
// first get courses from Moodle for page
|
||||||
final Map<String, CourseData> courseData = new HashMap<>();
|
final Map<String, CourseData> courseData = new HashMap<>();
|
||||||
final Collection<CourseData> coursesPage = getCoursesPage(restTemplate, page, 100);
|
final Collection<CourseData> coursesPage = getCoursesPage(restTemplate, page, 1000);
|
||||||
|
|
||||||
if (coursesPage.isEmpty()) {
|
if (coursesPage.isEmpty()) {
|
||||||
return new Pair<>(Collections.emptyList(), 0);
|
return new Pair<>(Collections.emptyList(), 0);
|
||||||
|
@ -352,7 +352,7 @@ public class MoodleCourseAccess extends CourseAccess {
|
||||||
.filter(getCourseFilter())
|
.filter(getCourseFilter())
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
log.info("course page with {} courses, after filtering {} left", keysPage.courseKeys, result.size());
|
// log.info("course page with {} courses, after filtering {} left", keysPage.courseKeys, result.size());
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
|
|
Loading…
Reference in a new issue