Skip to content

Commit 2072268

Browse files
committed
edge case: beatmap may not exist
1 parent 95a0533 commit 2072268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/repositories/stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ async def sql_recalculate_mode(player_id: int, mode: int) -> None:
302302
SUM(s2.grade = "A") AS a_count
303303
FROM
304304
scores s2
305-
INNER JOIN maps m2 ON s2.map_md5 = m2.md5
305+
LEFT JOIN maps m2 ON s2.map_md5 = m2.md5
306306
WHERE s2.mode = :mode
307307
AND s2.userid = :user_id
308308
)

0 commit comments

Comments
 (0)