fix LB winner name

online_registration
Raz 1 year ago
parent e797135ee5
commit 40a3d584a0
  1. 6
      tournaments/models/match.py

@ -167,7 +167,11 @@ class Match(models.Model):
elif len(team_scores) == 1:
# Only one team score, handle missing one
existing_team = team_scores[0].live_team(self)
if self.round and self.round.parent:
teams.append(existing_team)
elif (self.group_stage):
teams.append(existing_team)
else:
if previous_top_match and previous_top_match.disabled == False and previous_top_match.end_date is None:
names = [f"Gagnants du {previous_top_match.computed_name()}", '']
team = self.default_live_team(names)

Loading…
Cancel
Save