|
|
|
@ -151,12 +151,14 @@ class Match(models.Model): |
|
|
|
for team_score in self.sorted_team_scores(): |
|
|
|
for team_score in self.sorted_team_scores(): |
|
|
|
if team_score.team_registration: |
|
|
|
if team_score.team_registration: |
|
|
|
image = team_score.team_registration.logo |
|
|
|
image = team_score.team_registration.logo |
|
|
|
|
|
|
|
weight = team_score.team_registration.weight |
|
|
|
|
|
|
|
is_winner = team_score.team_registration.id == self.winning_team_id |
|
|
|
else: |
|
|
|
else: |
|
|
|
image = None |
|
|
|
image = None |
|
|
|
|
|
|
|
weight= None |
|
|
|
|
|
|
|
is_winner = False |
|
|
|
names = team_score.team_names() |
|
|
|
names = team_score.team_names() |
|
|
|
scores = team_score.scores_array() |
|
|
|
scores = team_score.scores_array() |
|
|
|
weight = team_score.team_registration.weight |
|
|
|
|
|
|
|
is_winner = team_score.team_registration.id == self.winning_team_id |
|
|
|
|
|
|
|
walk_out = team_score.walk_out |
|
|
|
walk_out = team_score.walk_out |
|
|
|
team = Team(image, names, scores, weight, is_winner, walk_out) |
|
|
|
team = Team(image, names, scores, weight, is_winner, walk_out) |
|
|
|
livematch.add_team(team) |
|
|
|
livematch.add_team(team) |
|
|
|
|