Skip to content

Commit

Permalink
Merge pull request #247 from sopt-makers/hotfix/attendance-score-calc…
Browse files Browse the repository at this point in the history
…ulate-policy

HOT FIX() : 34기 출석 점수 연산 방식 수정 반영
  • Loading branch information
yummygyudon authored Mar 29, 2024
2 parents 1ac3e6b + 57d0ef3 commit ccbedc1
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,12 @@ public AttendanceStatus getStatus() {
val second = getSubAttendanceByRound(2);

return switch (this.lecture.getAttribute()) {
case SEMINAR -> second.getStatus().equals(ATTENDANCE)
? first.getStatus().equals(ATTENDANCE) ? ATTENDANCE : TARDY
: ABSENT;
case SEMINAR -> {
if (first.getStatus().equals(ATTENDANCE) && second.getStatus().equals(ATTENDANCE)) {
yield ATTENDANCE;
}
yield first.getStatus().equals(ABSENT) && second.getStatus().equals(ABSENT) ? ABSENT : TARDY;
}
case EVENT -> second.getStatus().equals(ATTENDANCE) ? ATTENDANCE : ABSENT;
case ETC -> second.getStatus().equals(ATTENDANCE) ? PARTICIPATE : NOT_PARTICIPATE;
};
Expand Down

0 comments on commit ccbedc1

Please sign in to comment.