clubs
Laurent 2 years ago
parent 30c8f00c27
commit 153937ed08
  1. 4
      tournaments/models/group_stage.py
  2. 2
      tournaments/templates/tournaments/group_stage_cell.html

@ -70,6 +70,7 @@ class GroupStage(models.Model):
total1 = scores1[0]
total2 = scores2[0]
if ts1.team_registration in gs_teams and ts2.team_registration in gs_teams:
team1 = gs_teams[ts1.team_registration]
team2 = gs_teams[ts2.team_registration]
team1.diff = total1 - total2
@ -116,7 +117,10 @@ class LiveGroupStage:
class GroupStageTeam:
def __init__(self, team_registration):
self.names = team_registration.team_names()
if team_registration.group_stage_position:
self.position = team_registration.group_stage_position
else:
self.position = 0
self.wins = 0
self.losses = 0
self.diff = 0

@ -15,7 +15,7 @@
<div class="table-row-2-colums bottom-border">
<div class="table-cell table-cell-large">
{% for name in team.names %}
<div class="{% if team.is_winner %}winner{% endif %}">
<div class="semibold {% if team.is_winner %}winner{% endif %}">
{{ name }}
</div>
{% endfor %}

Loading…
Cancel
Save