Skip to content

Commit

Permalink
Set fields in BracketMatchOpponent not inited to None
Browse files Browse the repository at this point in the history
  • Loading branch information
vlee489 committed Oct 9, 2024
1 parent 80a3670 commit 4972150
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sendou/models/tournament/bracket/bracket.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ class BracketMatchOpponent:

def __init__(self, data: dict):
self.id = data.get("id", 0)
self.position = None
self.score = None
self.result = None
self.totalPoints = None
if "position" in data:
self.position = data.get("position", 0)
if "score" in data:
Expand Down

0 comments on commit 4972150

Please sign in to comment.