mirror of
https://github.com/ershisan99/www.git
synced 2025-12-31 21:09:23 +00:00
fix total games and winrate in leaderboards by not counting ties at all
This commit is contained in:
@@ -24,6 +24,8 @@ export const neatqueue_service = {
|
||||
rank: idx + 1,
|
||||
id: entry.id,
|
||||
name: entry.name,
|
||||
totalgames: entry.data.wins + entry.data.losses,
|
||||
winrate: entry.data.wins / (entry.data.wins + entry.data.losses),
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user