fix(recalculate): save pp to original score

This commit is contained in:
MingxuanGame
2025-08-27 21:20:59 +08:00
committed by GitHub
parent dfe173b40f
commit 1f53c66700

View File

@@ -118,6 +118,7 @@ async def _recalculate_pp(
pp = await calculate_pp(score, beatmap_raw, session)
if pp == 0:
return
score.pp = pp
if score.beatmap_id not in prev or prev[score.beatmap_id].pp < pp:
best_score = PPBestScore(
user_id=user_id,