made update stop sending before 1am
since i fixed the update time i can make the deadline 1am
This commit is contained in:
parent
9357f7381b
commit
ffd83811ab
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
|
@ -208,8 +208,8 @@ func scheduleTimetableUpdate() {
|
|||
// Get current time to filter any changes to Timetable before 3am so the new day changes stop
|
||||
//
|
||||
now := getTime()
|
||||
// If before 3am stop and update userdata
|
||||
if now.Hour() < 3 {
|
||||
// If before 1am stop and update userdata
|
||||
if now.Hour() < 1 {
|
||||
prevData[acc.UserID] = data
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue