From 69be2b77158dc81de4929582a61b88faef68cca0 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Mon, 24 Jul 2023 15:49:37 +0800 Subject: Change perPage parameters --- contents/ui/main.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contents/ui') diff --git a/contents/ui/main.qml b/contents/ui/main.qml index 0e4f04a..0c4d57f 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -69,7 +69,7 @@ Item { let importantCount = {announcements: 0, assignments: 0} for (let course of courses) { - callApi(`/announcements?context_codes[]=course_${course.id}`, 10, announcements => { + callApi(`/announcements?context_codes[]=course_${course.id}`, 50, announcements => { announcements.forEach(announcement => { const info = { type: "announcement", @@ -89,9 +89,9 @@ Item { }) }) - callApi(`/courses/${course.id}/assignments`, 10, assignments => { + callApi(`/courses/${course.id}/assignments`, 50, assignments => { assignments.forEach(assignment => { - callApi(`/courses/${course.id}/assignments/${assignment.id}/submissions/${userId}`, 1, submission => { + callApi(`/courses/${course.id}/assignments/${assignment.id}/submissions/${userId}`, 0, submission => { const info = { type: "assignment", activityId: assignment.id, -- cgit v1.2.3