mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:17:51 +08:00
Do not reprocess ranks for custom rulesets
Chances are that because we've broken rank API, it would utterly fail for all custom rulesets anyhow.
This commit is contained in:
parent
0b5be3c40c
commit
6c169e3156
@ -383,7 +383,10 @@ namespace osu.Game.Database
|
||||
HashSet<Guid> scoreIds = realmAccess.Run(r => new HashSet<Guid>(
|
||||
r.All<ScoreInfo>()
|
||||
.Where(s => s.TotalScoreVersion < LegacyScoreEncoder.LATEST_VERSION)
|
||||
.AsEnumerable() // need to materialise here as realm cannot support `.Select()`.
|
||||
.AsEnumerable()
|
||||
// must be done after materialisation, as realm doesn't support
|
||||
// filtering on nested property predicates or projection via `.Select()`
|
||||
.Where(s => s.Ruleset.IsLegacyRuleset())
|
||||
.Select(s => s.ID)));
|
||||
|
||||
Logger.Log($"Found {scoreIds.Count} scores which require rank upgrades.");
|
||||
|
Loading…
Reference in New Issue
Block a user