[F] Skip courses without graded assignments instead of without any assignments

This commit is contained in:
Hykilpikonna
2019-10-05 14:27:18 -04:00
parent 0345d37b2c
commit c4b8542b5b
+2 -2
View File
@@ -22,8 +22,8 @@ export class CourseUtils
// Skip courses without levels
if (course.level == 'None') return;
// Skip courses without assignments
if (course.assignments.length == 0) return;
// Skip courses without graded assignments
if (course.assignments.filter(a => a.complete == 'Complete').length == 0) return;
// Skip if there are no grading scale
// if (course.grading.method == 'NOT_GRADED') return;