Skip to content

Commit

Permalink
Merge pull request #100 from wafflestudio/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
Hank-Choi authored Jan 7, 2024
2 parents 4b5bb52 + 168bbd6 commit e65204a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ class SnuttLectureSyncJobConfig(

@Bean
fun syncJobNextSemester(jobRepository: JobRepository): Job {
val coursebook = mongoTemplate.findOne<Map<String, String>>(
val coursebook = mongoTemplate.findOne<Map<String, Any>>(
Query().with(Sort.by(Sort.Direction.DESC, "year").and(Sort.by(Sort.Direction.DESC, "semester"))),
"coursebooks",
)
val (targetYear, targetSemester) = coursebook!!.let {
it["year"]!!.toInt() to it["semester"]!!.toInt()
it["year"]!! as Int to it["semester"]!! as Int
}
lecturesMap = lectureRepository.findAll().associateBy { "${it.courseNumber},${it.instructor}" }.toMutableMap()
semesterLecturesMap =
Expand Down

0 comments on commit e65204a

Please sign in to comment.