1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-09 02:24:10 +08:00

Fix rank upgrade path upgrading scores that failed background reprocessing earlier

This commit is contained in:
Bartłomiej Dach 2024-07-16 14:01:50 +02:00
parent 53b6f9e385
commit 7ba1f142e5
No known key found for this signature in database

View File

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