page=B events=B ezpz w tags

main
Bel LaPointe 2024-12-15 02:17:43 -07:00
parent b9392a38e2
commit 8115bdf3ff
1 changed files with 5 additions and 0 deletions

View File

@ -76,8 +76,13 @@ func (s *S) serveWS(w http.ResponseWriter, r *http.Request) error {
return err return err
} }
points := 0 points := 0
tags := []map[string]any{}
for _, kill := range v.Kills { for _, kill := range v.Kills {
points += kill.KillWord.Points points += kill.KillWord.Points
tags = append(tags, map[string]any{
"k": kill.KillWord.Word,
"v": kill.Victim,
})
} }
items = append(items, map[string]any{ items = append(items, map[string]any{
"name": name, "name": name,