Skip to content

Commit

Permalink
[Study programme overview] Only include graduations from correct years
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed Jul 4, 2024
1 parent ee43ec8 commit 92aa1d5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ const getGraduationTimeStats = async ({ studyprogramme, years, isAcademicYear, i

const duration = calculateDurationOfStudies(startDate, graduationDate, studyRight.semesterEnrollments, semesters)
const graduationYear = defineYear(graduationDate, isAcademicYear)

if (!graduationTimes[graduationYear] || !graduationTimesCombo[graduationYear]) {
continue
}

if (countAsBachelorMaster) {
graduationTimesCombo[graduationYear].push(duration)
} else {
Expand Down

0 comments on commit 92aa1d5

Please sign in to comment.