fix(statistics): fix levels

This commit is contained in:
MingxuanGame
2025-08-13 10:37:51 +00:00
parent 46746f5b71
commit 7a6a548a65
4 changed files with 203 additions and 17 deletions

View File

@@ -585,7 +585,7 @@ async def process_user(
session.add(previous_score_best)
statistics.ranked_score += difference
statistics.level_current = calculate_score_to_level(statistics.ranked_score)
statistics.level_current = calculate_score_to_level(statistics.total_score)
statistics.maximum_combo = max(statistics.maximum_combo, score.max_combo)
if score.passed and ranked:
if previous_score_best_mod is not None: