fix(score): fix incorrect best_id

This commit is contained in:
MingxuanGame
2025-08-25 13:23:33 +00:00
parent 9681aa68b4
commit 900fa9b121
2 changed files with 6 additions and 16 deletions

View File

@@ -580,7 +580,7 @@ async def _score(
best_id = await get_best_id(session, score.id)
bp_pp = ""
if best_id:
bp_pp = f"(b{best_id} -> {calculate_weighted_pp(score.pp, best_id):.2f}pp)"
bp_pp = f"(b{best_id} -> {calculate_weighted_pp(score.pp, best_id - 1):.2f}pp)"
result = f"""{score.beatmap.beatmapset.title} [{score.beatmap.version}] ({score.gamemode.name.lower()})
Played at {score.started_at}