Skip to content

Commit 72c4c19

Browse files
authored
수강스누 싱크 배치잡 파싱 오류 해결 (#468)
1 parent 0ac0169 commit 72c4c19

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

batch/src/main/kotlin/sugangsnu/common/data/SugangSnuClassTime.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,4 @@ data class SugangSnuClassTime(
66
val startMinute: String,
77
val endHour: String,
88
val endMinute: String,
9-
val startPeriod: Double =
10-
when (startMinute) {
11-
"00" -> startHour.toDouble() - 8
12-
"30" -> startHour.toDouble() - 7.5
13-
else -> throw IllegalArgumentException()
14-
},
15-
val endPeriod: Double =
16-
when (endMinute) {
17-
"15", "20" -> endHour.toDouble() - 7.5
18-
"45", "50" -> endHour.toDouble() - 7.0
19-
else -> throw IllegalArgumentException()
20-
},
219
)

batch/src/main/kotlin/sugangsnu/common/utils/SugangSnuClassTimeUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ object SugangSnuClassTimeUtils {
4040
)
4141
}.sortedWith(compareBy({ it.day.value }, { it.startMinute }))
4242
}.getOrElse {
43-
log.error("classtime으로 변환 실패 (time: {}, location: {})", classTimesTexts, locationsTexts)
43+
log.error("classtime으로 변환 실패 (time: {}, location: {})", classTimesTexts, locationsTexts, it)
4444
emptyList()
4545
}
4646

0 commit comments

Comments
 (0)