From f4e68c56df6bc0a8351f1d01f4afdda45d7d1677 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sat, 23 Oct 2021 23:00:22 +0200 Subject: [PATCH] return played games with best mates --- utils/utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/utils.go b/utils/utils.go index 5db91b4..c7c0745 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -356,6 +356,7 @@ func GetMetaStats(dbPlayer *ent.Player, lock *sync.RWMutex, limit int) (*MetaSta mateRes.Player = playerRes mateRes.TieRate = float32(ties) / float32(mostRes.Total) mateRes.WinRate = float32(wins) / float32(mostRes.Total) + mateRes.Total = mostRes.Total mResponse.BestMates = append(mResponse.BestMates, mateRes) } }