fix:#20 test for mockClock in winter semester

This commit is contained in:
Elmar Kresse
2024-09-06 20:06:21 +02:00
parent ebed0e00a3
commit 86b03eba50
4 changed files with 19 additions and 6 deletions

View File

@@ -51,7 +51,8 @@ func AddSchedules(services serviceModel.Service) {
// In Germany it is 7am and 7pm, syllabus gets updated twice a day at German 5:00 Uhr and 17:00 Uhr
scheduler.MustAdd("updateEventsByCourse", "0 5,17 * * *", func() {
slog.Info("Started updating courses schedule")
course.UpdateCourse(services)
clock := time.RealClock{}
course.UpdateCourse(services, clock)
})
// Every sunday at 1am clean all courses (5 segments - minute, hour, day, month, weekday) "0 3 * * 0"