Skip to content

Commit

Permalink
[Class statistics] Fix Credits gained for master's programmes
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed Oct 14, 2024
1 parent 7811bdd commit 8e83da9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export const CreditsGainedTable = ({ filteredStudents, programmeGoalTime, type,
} else {
creditList = filteredStudents.map(({ studentNumber, courses }) => ({
studentNumber,
credits: getStudentTotalCredits({ courses }),
credits: getStudentTotalCredits({
courses: courses.filter(course => moment(course.date).isBetween(startDate ?? start, endDate ?? end)),
}),
}))
}

Expand Down

0 comments on commit 8e83da9

Please sign in to comment.