From 490a99e9f443c6647803245992e6a10b748a740a Mon Sep 17 00:00:00 2001 From: Ben Boyter Date: Thu, 16 Jan 2025 08:41:39 +1100 Subject: [PATCH] add uniqueness --- cmd/badges/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/badges/main.go b/cmd/badges/main.go index 2cdeecf05..6d662fff2 100644 --- a/cmd/badges/main.go +++ b/cmd/badges/main.go @@ -104,6 +104,11 @@ func appendLocationLog(log string) { locationLogMutex.Lock() defer locationLogMutex.Unlock() + for _, l := range locationLog { + if l == log { + return + } + } locationLog = append(locationLog, log) if len(locationLog) > 100 {