1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 19:27:24 +08:00

Inline last version which touched ranks when checking for upgrade

This commit is contained in:
Bartłomiej Dach 2024-02-24 13:55:44 +01:00
parent 4bc92a263f
commit f6ceedc7a6
No known key found for this signature in database

View File

@ -382,7 +382,7 @@ namespace osu.Game.Database
HashSet<Guid> scoreIds = realmAccess.Run(r => new HashSet<Guid>(
r.All<ScoreInfo>()
.Where(s => s.TotalScoreVersion < LegacyScoreEncoder.LATEST_VERSION)
.Where(s => s.TotalScoreVersion < 30000013) // last total score version with a significant change to ranks
.AsEnumerable()
// must be done after materialisation, as realm doesn't support
// filtering on nested property predicates or projection via `.Select()`