From 9bc1206ef5c799f5c91a5c012a24a5afff55bf63 Mon Sep 17 00:00:00 2001 From: Roman Godmaire Date: Sun, 19 May 2024 21:41:39 -0400 Subject: [PATCH] fix: reverse clone of list, not global --- stormlight.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stormlight.go b/stormlight.go index 21f8aa3..3e5584a 100644 --- a/stormlight.go +++ b/stormlight.go @@ -103,6 +103,8 @@ var stormlight []Book = []Book{ func getBookWithTimestamp(timeRemaining time.Duration) (string, time.Duration) { timeRemaining = time.Duration(timeRemaining.Hours()/24) * 45 * time.Minute + + stormlight := slices.Clone(stormlight) slices.Reverse(stormlight) for _, book := range stormlight {