API: More information in groups

This commit is contained in:
mkwcat
2023-12-12 05:03:33 -05:00
parent 61221bddea
commit b1849bb68e
3 changed files with 44 additions and 6 deletions

View File

@@ -25,8 +25,8 @@ func HandleGroups(w http.ResponseWriter, r *http.Request) {
for i, player := range group.Players {
filtered := map[string]string{}
filtered["dwc_pid"] = player["dwc_pid"]
filtered["ingamename"] = player["ingamename"]
filtered["pid"] = player["dwc_pid"]
filtered["name"] = player["name"]
if player["gamename"] == "mariokartwii" {
filtered["ev"] = player["ev"]