hdkv
/
i2_bot
Archived
1
Fork 0

Fixing error with chats statistics

master
Vladimir Hodakov 2018-02-06 13:53:19 +04:00
parent feb1899992
commit 56987f001a
1 changed files with 2 additions and 0 deletions

View File

@ -30,10 +30,12 @@ func (s *Statistics) SquadStatictics(squadID int) string {
playerRaw, err := c.DataCache.GetPlayerByID(squadMembers[i].PlayerID)
if err != nil {
c.Log.Error(err.Error())
continue
}
profileRaw, err := c.DataCache.GetProfileByPlayerID(playerRaw.ID)
if err != nil {
c.Log.Error(err.Error())
continue
}
fullInfo.Squad = squad