fix(score): sort mods to ensure to find scores

This commit is contained in:
MingxuanGame
2025-08-18 12:58:10 +00:00
parent b5b14f5466
commit 8d5f71f7d8
2 changed files with 9 additions and 3 deletions

View File

@@ -242,7 +242,13 @@ async def get_beatmap_scores(
)
all_scores, user_score, count = await get_leaderboard(
db, beatmap_id, mode, type=type, user=current_user, limit=limit, mods=mods
db,
beatmap_id,
mode,
type=type,
user=current_user,
limit=limit,
mods=sorted(mods),
)
user_score_resp = await ScoreResp.from_db(db, user_score) if user_score else None