[U] Load raw assignments
This commit is contained in:
+1
-1
@@ -148,7 +148,7 @@ export default class Course
|
|||||||
{
|
{
|
||||||
// Load assignments
|
// Load assignments
|
||||||
// Parse json and filter it
|
// 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)
|
// Sort by date (Latest is at 0)
|
||||||
this.rawAssignments.sort((a, b) => b.time - a.time);
|
this.rawAssignments.sort((a, b) => b.time - a.time);
|
||||||
|
|||||||
Reference in New Issue
Block a user