From ecba4d68e61af2b3736a4ffa0479db4d684fb667 Mon Sep 17 00:00:00 2001 From: daru Date: Mon, 18 Jul 2022 01:12:04 +0200 Subject: [PATCH] Do recycle the future --- praktikant.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/praktikant.go b/praktikant.go index 666499b..f8c9774 100644 --- a/praktikant.go +++ b/praktikant.go @@ -28,7 +28,7 @@ func Arbeit() { } else { cleared := 0 for _, a := range appoints { - if a.Time.Before(time.Now().Add(time.Hour * 22)) { + if a.Time.Add(time.Hour * 22).Before(time.Now()) { // appointment expired keyBytes := Int64AndDateToBytes(a.Anime, a.Time) err = DbDelete(bucketAppoint, string(keyBytes))