[F] Only average graded assignments in type average

This commit is contained in:
Hykilpikonna
2020-03-07 16:15:59 -05:00
parent 78159fda3f
commit 158344f24f
+1 -1
View File
@@ -379,7 +379,7 @@ export default class Course
return types.map(type =>
{
// Get assignments of the type
let typeAssignments = this.assignments.filter(a => a.type == type);
let typeAssignments = this.assignments.filter(a => a.graded && a.type == type);
// Count scores and max scores
let score = typeAssignments.reduce((sum, a) => sum + a.score, 0);