diff --git a/web/index.templ b/web/index.templ index cd75f73..ce47d6e 100644 --- a/web/index.templ +++ b/web/index.templ @@ -88,15 +88,15 @@ if sl != nil && len(sl) != 0 { - for _, song := range sl { + for i := 0; i < len(sl); i++ { - { utils.ToClientTimezone(song.StartAt, r).Format("15:04") } - if song.MaxListeners != 0 { - { strconv.FormatInt(song.Listeners, 10) }/{ strconv.FormatInt(song.MaxListeners, 10) } + { utils.ToClientTimezone(sl[i].StartAt, r).Format("15:04") } + if sl[i].MaxListeners != 0 { + { strconv.FormatInt(sl[i].Listeners, 10) }/{ strconv.FormatInt(sl[i].MaxListeners, 10) } } else { } - { song.Artist } - { song.Title } + { sl[i].Artist } - { sl[i].Title } }