feat(beatmap): support playcount & passcount

This commit is contained in:
MingxuanGame
2025-08-06 12:07:12 +00:00
parent 9f7ab81213
commit 4f3ab38454
6 changed files with 111 additions and 8 deletions

View File

@@ -28,6 +28,7 @@ from app.models.score import (
)
from .beatmap import Beatmap, BeatmapResp
from .beatmap_playcounts import process_beatmap_playcount
from .beatmapset import BeatmapsetResp
from .best_score import BestScore
from .lazer_user import User, UserResp
@@ -601,6 +602,7 @@ async def process_user(
statistics.hit_accuracy = acc_sum
if add_to_db:
session.add(mouthly_playcount)
await process_beatmap_playcount(session, user.id, score.beatmap_id)
await session.commit()
await session.refresh(user)