summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2023-07-24 15:49:37 +0800
committerFrederick Yin <fkfd@fkfd.me>2023-07-24 15:49:37 +0800
commit69be2b77158dc81de4929582a61b88faef68cca0 (patch)
treecd72f0b3373c5c595c016e2246a8b0a04e15173a
parent35ae25d99db6992ac25c7f160e522608e0ff9a7f (diff)
Change perPage parameters
-rw-r--r--contents/ui/main.qml6
1 files changed, 3 insertions, 3 deletions
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,