From 290a40728a6dcb519c82a7ed4894c89a3e8baedb Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 17 Jun 2024 09:42:03 +0200 Subject: [PATCH] Fixes walk_out display issues --- tournaments/models/match.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):