|
|
|
@ -190,7 +190,7 @@ class Team: |
|
|
|
self.scores = scores |
|
|
|
self.scores = scores |
|
|
|
self.weight = weight |
|
|
|
self.weight = weight |
|
|
|
self.is_winner = is_winner |
|
|
|
self.is_winner = is_winner |
|
|
|
self.walk_out = walk_out |
|
|
|
self.walk_out = walk_out is not None |
|
|
|
|
|
|
|
|
|
|
|
def to_dict(self): |
|
|
|
def to_dict(self): |
|
|
|
return { |
|
|
|
return { |
|
|
|
@ -215,7 +215,7 @@ class LiveMatch: |
|
|
|
|
|
|
|
|
|
|
|
def add_team(self, team): |
|
|
|
def add_team(self, team): |
|
|
|
self.teams.append(team) |
|
|
|
self.teams.append(team) |
|
|
|
if team.walk_out: |
|
|
|
if team.walk_out is not None: |
|
|
|
self.has_walk_out = True |
|
|
|
self.has_walk_out = True |
|
|
|
|
|
|
|
|
|
|
|
def to_dict(self): |
|
|
|
def to_dict(self): |
|
|
|
|