Fix open beta bug (lowercased usernames before open beta)
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2020-07-16 18:25:25 +02:00
parent 1aa4572f0e
commit d09736039e
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ func calculateLastSungSongDate(songCache []irc.SingsVideoStruct, SongTitle strin
func calculateLastSungSingerDate(songCache []irc.SingsVideoStruct, Singer string) time.Time { func calculateLastSungSingerDate(songCache []irc.SingsVideoStruct, Singer string) time.Time {
var t time.Time var t time.Time
for _, record := range songCache { for _, record := range songCache {
if record.OtherSinger == Singer { if strings.ToUpper(record.OtherSinger) == strings.ToUpper(Singer) {
if record.Date.After(t) { if record.Date.After(t) {
t = record.Date t = record.Date
} }