diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index cce3013..f9763ab 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -947,7 +947,7 @@ class Tournament(BaseModel): matches = [m for m in bracket_matches if m.start_date is not None] if len(matches) == 0: return None - return min(matches, key=lambda m: m.start_date) + return min(matches, key=lambda m: m.start_date).start_date def getEightAm(self, date): return date.replace(hour=8, minute=0, second=0, microsecond=0, tzinfo=date.tzinfo)