From fdb4752e8793265d972929bc585ae1eed49f1d2b Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 7 Dec 2019 11:55:02 -0500 Subject: [PATCH] [U] Load raw assignments --- src/logic/course.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logic/course.ts b/src/logic/course.ts index 965c659..ced185b 100644 --- a/src/logic/course.ts +++ b/src/logic/course.ts @@ -148,7 +148,7 @@ export default class Course { // Load assignments // Parse json and filter it - this.rawAssignments = JsonUtils.filterAssignments(data); + this.rawAssignments = data.assignments.map((a: any) => new Assignment(a)); // Sort by date (Latest is at 0) this.rawAssignments.sort((a, b) => b.time - a.time);