Skip to content

Commit

Permalink
HOT FIX() : 34기 출석 점수 연산 방식 수정 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
yummygyudon committed Mar 29, 2024
1 parent 1ac3e6b commit 3ddfa71
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,15 @@ 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 SEMINAR -> second.getStatus().equals(ATTENDANCE)
// ? first.getStatus().equals(ATTENDANCE) ? ATTENDANCE : TARDY
// : ABSENT;
case EVENT -> second.getStatus().equals(ATTENDANCE) ? ATTENDANCE : ABSENT;
case ETC -> second.getStatus().equals(ATTENDANCE) ? PARTICIPATE : NOT_PARTICIPATE;
};
Expand Down

0 comments on commit 3ddfa71

Please sign in to comment.