From 5f39d02b07a4340ff1c1c16e96b0f85851f8188d Mon Sep 17 00:00:00 2001 From: anhefti Date: Tue, 15 Dec 2020 21:34:10 +0100 Subject: [PATCH] get page of 1000 --- .../servicelayer/lms/impl/moodle/MoodleCourseAccess.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleCourseAccess.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleCourseAccess.java index 522e1d55..f6e6e9ee 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleCourseAccess.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleCourseAccess.java @@ -243,7 +243,7 @@ public class MoodleCourseAccess extends CourseAccess { // first get courses from Moodle for page final Map courseData = new HashMap<>(); - final Collection coursesPage = getCoursesPage(restTemplate, page, 100); + final Collection coursesPage = getCoursesPage(restTemplate, page, 1000); if (coursesPage.isEmpty()) { return new Pair<>(Collections.emptyList(), 0); @@ -352,7 +352,7 @@ public class MoodleCourseAccess extends CourseAccess { .filter(getCourseFilter()) .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; } catch (final Exception e) {