Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit e07a0f4

Browse files
committed
cleanup
1 parent efb7525 commit e07a0f4

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

common/ripple/user_utils.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,23 +1034,20 @@ async def recalculate_and_update_first_place_scores(user_id: int) -> None:
10341034
logging.info(
10351035
"Updating first place score",
10361036
extra={
1037+
"score_id": score["id"],
10371038
"user_id": user_id,
10381039
"beatmap_md5": score["beatmap_md5"],
10391040
"play_mode": score["play_mode"],
10401041
"rx": rx,
10411042
"score_value": score["score_value"],
1042-
"previous_score_id": (
1043-
existing_first_place["scoreid"]
1044-
if existing_first_place
1045-
else None
1046-
),
1047-
"previous_user_id": (
1048-
existing_first_place["userid"]
1049-
if existing_first_place
1050-
else None
1051-
),
1052-
"previous_score_value": (
1053-
existing_first_place["score_value"]
1043+
"time": score["time"],
1044+
"previous": (
1045+
{
1046+
"score_id": existing_first_place["scoreid"],
1047+
"user_id": existing_first_place["userid"],
1048+
"score_value": existing_first_place["score_value"],
1049+
"time": existing_first_place["time"],
1050+
}
10541051
if existing_first_place
10551052
else None
10561053
),

0 commit comments

Comments
 (0)