diff --git a/tournaments/models/match.py b/tournaments/models/match.py index 800747a..8c25c8d 100644 --- a/tournaments/models/match.py +++ b/tournaments/models/match.py @@ -190,7 +190,7 @@ class Team: self.scores = scores self.weight = weight self.is_winner = is_winner - self.walk_out = walk_out + self.walk_out = walk_out is not None def to_dict(self): return { @@ -215,7 +215,7 @@ class LiveMatch: def add_team(self, team): self.teams.append(team) - if team.walk_out: + if team.walk_out is not None: self.has_walk_out = True def to_dict(self):