diff --git a/tournaments/models/group_stage.py b/tournaments/models/group_stage.py index 6f0a0dc..132ef43 100644 --- a/tournaments/models/group_stage.py +++ b/tournaments/models/group_stage.py @@ -162,6 +162,11 @@ class LiveGroupStage: "duration": self.formatted_duration() } + def started(self): + if self.start is None: + return False + return self.start < timezone.now() + class GroupStageTeam: def __init__(self, team_registration): self.names = team_registration.shortened_team_names() diff --git a/tournaments/templates/tournaments/group_stage_cell.html b/tournaments/templates/tournaments/group_stage_cell.html index 7c74043..ee90d69 100644 --- a/tournaments/templates/tournaments/group_stage_cell.html +++ b/tournaments/templates/tournaments/group_stage_cell.html @@ -21,17 +21,17 @@ {% endfor %}