Skip to content

Commit 7adba6b

Browse files
committed
fix (#1) : 오타 및 예외 분기 오류 수정
1 parent cc8b571 commit 7adba6b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/com/codingwasabi/howtodo/web/calendar/CalendarController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private List<Exam> extractExams(Account account, CreateCalendarRequest createCal
6464
return createCalendarRequest.getExams()
6565
.stream()
6666
.map(dto -> Exam.builder()
67-
.dueDateTime(dto.getLocalDateTime())
67+
.dueDateTime(dto.getDate())
6868
.name(dto.getName())
6969
.studyDegree(dto.getPrepareTime())
7070
.account(account)

src/main/java/com/codingwasabi/howtodo/web/calendar/dto/CreateCalendarRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class CreateCalendarRequest {
2424
public static class ExamInfo {
2525
private String name;
2626
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm")
27-
private LocalDateTime localDateTime;
27+
private LocalDateTime date;
2828
private int prepareTime;
2929
}
3030
}

src/main/java/com/codingwasabi/howtodo/web/policy/tendency/MostChosenTendencySolution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private static boolean noRemainTime(List<Exam> exams, int dailyQuota, LocalDate
168168
int allOfStudyTime = getRemainDays(exams.get(exams.size() - 1), today) * dailyQuota;
169169

170170
for (Exam exam : exams) {
171-
if (allOfStudyTime <= exam.getStudyDegree()) {
171+
if (allOfStudyTime < exam.getStudyDegree()) {
172172
return true;
173173
}
174174
allOfStudyTime -= exam.getStudyDegree();

0 commit comments

Comments
 (0)