feat(banchobot): show weighted pp in score commands

This commit is contained in:
MingxuanGame
2025-08-25 12:10:47 +00:00
parent d11303b562
commit 9681aa68b4
2 changed files with 10 additions and 5 deletions

View File

@@ -355,7 +355,7 @@ class ScoreAround(SQLModel):
lower: MultiplayerScores | None = None
async def get_best_id(session: AsyncSession, score_id: int) -> None:
async def get_best_id(session: AsyncSession, score_id: int) -> int | None:
rownum = (
func.row_number().over(partition_by=col(PPBestScore.user_id), order_by=col(PPBestScore.pp).desc()).label("rn")
)