Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
doc: meaningful tmp var name, while keeping the attribute's name simple
Co-authored-by: Christian Clauss <[email protected]>
  • Loading branch information
NumberPigeon and cclauss authored Aug 30, 2023
commit 50a137e778786d720b0633c31f5ded9fdc4e9a58
4 changes: 2 additions & 2 deletions sc2reader/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ def __init__(self, uid, init_data):
#: 2. The user has a None value for their 'scaled_rating' key, or
#: 3. The user has a negative rating, often -36400.
#: For ease of use, this property will return None in both cases.
mmr = int(init_data.get("scaled_rating") or 0)
self.mmr = mmr if mmr > 0 else None
matchmaking_rating = int(init_data.get("scaled_rating") or 0)
self.mmr = matchmaking_rating if matchmaking_rating > 0 else None

@property
def url(self):
Expand Down