1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 13:22:55 +08:00

Fill daily challenge top 50 position numbers client-side

Only doing this client-side, because doing this server-side is
expensive:

	https://github.com/ppy/osu-web/pull/11354#discussion_r1689224285
This commit is contained in:
Bartłomiej Dach 2024-07-24 08:54:30 +02:00
parent aded31bd07
commit bf4bf4d39e
No known key found for this signature in database

View File

@ -138,9 +138,9 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
} }
else else
{ {
LoadComponentsAsync(best.Select(s => new LeaderboardScoreV2(s, sheared: false) LoadComponentsAsync(best.Select((s, index) => new LeaderboardScoreV2(s, sheared: false)
{ {
Rank = s.Position, Rank = index + 1,
IsPersonalBest = s.UserID == api.LocalUser.Value.Id, IsPersonalBest = s.UserID == api.LocalUser.Value.Id,
Action = () => PresentScore?.Invoke(s.OnlineID), Action = () => PresentScore?.Invoke(s.OnlineID),
}), loaded => }), loaded =>