From 8c8deeda977ec216485068771858db47baae970e Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Wed, 26 Feb 2020 16:10:43 -0700 Subject: [PATCH] fix setting of errata count --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index cb5b9d0..10c5839 100644 --- a/main.go +++ b/main.go @@ -157,6 +157,7 @@ func main() { fmt.Println(err) } l := got.Length + fmt.Printf("Found %d errata, I know about: %d\n", l, errataCount) if l > errataCount { log.Println("Found new errata") alertRooms, _ := store.Get("errata_rooms") @@ -174,7 +175,7 @@ func main() { errataCount = l } fmt.Printf("Setting errata_count to %d\n", l) - store.Set("errata_count", string(l)) + store.Set("errata_count", strconv.Itoa(l)) time.Sleep(2 * time.Hour) } }()