Format bot accounts in leaderboard
This commit is contained in:
parent
33a850b495
commit
62304c2736
1 changed files with 3 additions and 0 deletions
|
@ -634,6 +634,9 @@ func getLeaderboard(matchType int, multiPoint bool) (*leaderboardResult, error)
|
|||
if err != nil {
|
||||
continue
|
||||
}
|
||||
if strings.HasPrefix(entry.User, "bot_") {
|
||||
entry.User = "BOT_" + entry.User[4:]
|
||||
}
|
||||
entry.Rating /= 100
|
||||
result.Leaderboard = append(result.Leaderboard, entry)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue