fix(multiplayer): fix acc bug on leaderboards

This commit is contained in:
chenjintang-shrimp
2025-08-08 18:21:15 +00:00
parent 698c0c2a81
commit c49c0481d0
2 changed files with 3 additions and 2 deletions

View File

@@ -169,6 +169,7 @@ async def get_room_leaderboard(
for i, agg in enumerate(aggs):
resp = await ItemAttemptsResp.from_db(agg, db)
resp.position = i + 1
# resp.accuracy *= 100
aggs_resp.append(resp)
if agg.user_id == current_user.id:
user_agg = resp