return played games with best mates
This commit is contained in:
@@ -356,6 +356,7 @@ func GetMetaStats(dbPlayer *ent.Player, lock *sync.RWMutex, limit int) (*MetaSta
|
|||||||
mateRes.Player = playerRes
|
mateRes.Player = playerRes
|
||||||
mateRes.TieRate = float32(ties) / float32(mostRes.Total)
|
mateRes.TieRate = float32(ties) / float32(mostRes.Total)
|
||||||
mateRes.WinRate = float32(wins) / float32(mostRes.Total)
|
mateRes.WinRate = float32(wins) / float32(mostRes.Total)
|
||||||
|
mateRes.Total = mostRes.Total
|
||||||
mResponse.BestMates = append(mResponse.BestMates, mateRes)
|
mResponse.BestMates = append(mResponse.BestMates, mateRes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user