mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[Filters][Grade] Remove incorrect filtering of students without a grade
This commit is contained in:
committed by
Aaro Koivukangas
parent
86900b3ad4
commit
f0d802df83
@@ -84,8 +84,6 @@ export const gradeFilter = createFilter<Options, Args, Precompute>({
|
||||
),
|
||||
] as [string, FormattedStudent['courses']]
|
||||
)
|
||||
// Students with no courses get assigned "No grade" incorrectly
|
||||
.filter(([_, courses]) => courses.length > 0)
|
||||
.map(([studentNumber, courses]) => [
|
||||
studentNumber,
|
||||
getHighestGradeOfCourseBetweenRange(courses, args.from, args.to),
|
||||
|
||||
Reference in New Issue
Block a user