Fixes walk_out display issues

clubs
Laurent 1 year ago
parent 53414c489c
commit 290a40728a
  1. 4
      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):

Loading…
Cancel
Save