From f3636c15c91f6b145d1a1d604bdabbd3f69fc81a Mon Sep 17 00:00:00 2001 From: Jannover5000r Date: Wed, 29 Oct 2025 14:22:04 +0100 Subject: [PATCH] changed -1 to +1 --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index b666550..2f81670 100644 --- a/main.go +++ b/main.go @@ -142,7 +142,7 @@ func scheduleTimetableUpdate() { // Ticker for scheduled lesson notifications startMinuteTicker(func() { now := time.Now() - now = now.Add(-1 * time.Hour) + now = now.Add(1 * time.Hour) if isScheduledTime(now) { log.Println("Scheduled time reached, running notifications...") accounts, _ := BotStart.LoadAndDecryptAccounts() @@ -187,7 +187,7 @@ func Run(userID string) { subjectByStartTime, _ := MapTimeToSubject(timetableFile) nowOld := time.Now() - nowOld = nowOld.Add(-1 * time.Hour) + nowOld = nowOld.Add(1 * time.Hour) now := nowOld.Format("15:04") nextTime, room, foundRoom := NextRoomForTime(roomByStartTime, now) if !foundRoom {