Update clan.go

This commit is contained in:
Alicia 2019-02-25 21:19:07 +00:00
parent 21d9cf3fae
commit 178b5263d5

View File

@ -157,6 +157,7 @@ func AllClanStatsGET(md common.MethodData) common.CodeMessager {
members.Code = 200 members.Code = 200
if n == "std" { if n == "std" {
fmt.Printf("%v", r.Clans)
for u := 0; u < len(members.Members); u++ { for u := 0; u < len(members.Members); u++ {
r.Clans[i].ChosenMode.PP = r.Clans[i].ChosenMode.PP + members.Members[u].PpStd r.Clans[i].ChosenMode.PP = r.Clans[i].ChosenMode.PP + members.Members[u].PpStd
r.Clans[i].ChosenMode.RankedScore = r.Clans[i].ChosenMode.RankedScore + members.Members[u].RankedScoreStd r.Clans[i].ChosenMode.RankedScore = r.Clans[i].ChosenMode.RankedScore + members.Members[u].RankedScoreStd