feat(score): don't include in best performance for 0pp

This commit is contained in:
MingxuanGame
2025-08-21 11:43:36 +00:00
parent 49aa5edc96
commit 1104ff6c54
2 changed files with 10 additions and 7 deletions

View File

@@ -813,7 +813,7 @@ async def process_score(
user_id = user.id
await session.commit()
await session.refresh(score)
if can_get_pp:
if can_get_pp and score.pp != 0:
previous_pp_best = await get_user_best_pp_in_beatmap(
session, beatmap_id, user_id, score.gamemode
)