mirror of
https://github.com/ershisan99/www.git
synced 2026-01-06 12:35:13 +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,
|
rank: idx + 1,
|
||||||
id: entry.id,
|
id: entry.id,
|
||||||
name: entry.name,
|
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