From 71b71938c45cb928bfad7cd16f0330ec9f001001 Mon Sep 17 00:00:00 2001 From: Raz Date: Thu, 24 Apr 2025 07:08:29 +0200 Subject: [PATCH] fix error with geteightam date --- 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 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)