[F] Only return assignments of this grading period

This commit is contained in:
Hykilpikonna
2019-12-07 14:12:33 -05:00
parent 2d119ce531
commit 940bf3635c
+1 -1
View File
@@ -207,7 +207,7 @@ export default class Course
getAssignmentsBefore(time: number): {term: number, assignments: Assignment[]}
{
let term = Constants.getTerm(new Date(time));
let assignments = this.assignments.filter(a => a.time <= time);
let assignments = this.assignments.filter(a => a.gradingPeriod == term && a.time <= time);
return {term: term, assignments: assignments}
}