[O] Change assignment.date to time
This commit is contained in:
+2
-2
@@ -14,7 +14,7 @@ export interface Assignment
|
|||||||
type: string
|
type: string
|
||||||
typeId: number
|
typeId: number
|
||||||
description: string
|
description: string
|
||||||
date: Date
|
time: number
|
||||||
complete: string
|
complete: string
|
||||||
include: boolean
|
include: boolean
|
||||||
display: boolean
|
display: boolean
|
||||||
@@ -101,7 +101,7 @@ export default class Course
|
|||||||
this.rawAssignments = JsonUtils.filterAssignments(data);
|
this.rawAssignments = JsonUtils.filterAssignments(data);
|
||||||
|
|
||||||
// Sort by date (Latest is at 0)
|
// Sort by date (Latest is at 0)
|
||||||
this.rawAssignments.sort((a, b) => b.date.getTime() - a.date.getTime());
|
this.rawAssignments.sort((a, b) => b.time - a.time);
|
||||||
|
|
||||||
// Filter assignments into terms
|
// Filter assignments into terms
|
||||||
let termAssignments: Assignment[][] = [[], [], [], []];
|
let termAssignments: Assignment[][] = [[], [], [], []];
|
||||||
|
|||||||
Reference in New Issue
Block a user