From 92944b1c5a114425394356805485871e14cedc83 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Wed, 22 May 2024 15:51:02 +0200 Subject: [PATCH] fix final match not visible --- tournaments/models/tournament.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index 2fc8eea..9a68363 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -81,7 +81,7 @@ class Tournament(models.Model): for team_registration in self.teamregistration_set.all(): if team_registration.is_valid_for_summon(): next_match = team_registration.next_match() - if next_match: + if next_match and next_match.start_date is not None: names = team_registration.team_names() stage = next_match.summon_stage_name() weight = team_registration.weight