Skip to content

Commit 5fb6883

Browse files
committed
The case of 0 rating change
1 parent 7c41471 commit 5fb6883

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/overlay/api_checking.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ def find_rating_change(leaderboard_id: int,
220220
if rating_diff is None:
221221
match['result'] = "?"
222222
match['my_rating_diff'] = "?"
223+
elif rating_diff == 0:
224+
match['result'] = "?"
225+
match['my_rating_diff'] = 0
223226
else:
224227
match['result'] = "Win" if rating_diff > 0 else "Loss"
225228
match['my_rating_diff'] = rating_diff

0 commit comments

Comments
 (0)