From d09736039e4e52520a6d5a98c5c0d635146f65f8 Mon Sep 17 00:00:00 2001 From: Martyn Ranyard Date: Thu, 16 Jul 2020 18:25:25 +0200 Subject: [PATCH] Fix open beta bug (lowercased usernames before open beta) Signed-off-by: Martyn Ranyard --- internal/webserver/webserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/webserver/webserver.go b/internal/webserver/webserver.go index 67011dc..f79db20 100755 --- a/internal/webserver/webserver.go +++ b/internal/webserver/webserver.go @@ -447,7 +447,7 @@ func calculateLastSungSongDate(songCache []irc.SingsVideoStruct, SongTitle strin func calculateLastSungSingerDate(songCache []irc.SingsVideoStruct, Singer string) time.Time { var t time.Time for _, record := range songCache { - if record.OtherSinger == Singer { + if strings.ToUpper(record.OtherSinger) == strings.ToUpper(Singer) { if record.Date.After(t) { t = record.Date }