fix(score): a score with higher total score doesn't replace the old score

This commit is contained in:
MingxuanGame
2025-08-17 03:32:24 +00:00
parent bc7b720a3c
commit f1c0e089b4

View File

@@ -645,6 +645,11 @@ async def process_user(
mods=mod_for_save,
)
)
elif previous_score_best is not None:
previous_score_best.total_score = score.total_score
previous_score_best.rank = score.rank
previous_score_best.mods = mod_for_save
previous_score_best.score_id = score.id
statistics.play_count += 1
mouthly_playcount.count += 1