From 66293bfa0523102d965abcf9a11df0c4c0817395 Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 4 Jul 2025 18:32:24 +0200 Subject: [PATCH] attempt to fix future tournaments #2 --- tournaments/models/tournament.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index 08f9578..fc57b02 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -1036,11 +1036,11 @@ class Tournament(BaseModel): def starts_in_the_future(self): # tomorrow = datetime.now().date() + timedelta(days=1) - timezoned_datetime = self.local_start_date() - start = timezoned_datetime.replace(hour=0, minute=0) + # timezoned_datetime = self.local_start_date() + # start = timezoned_datetime.replace(hour=0, minute=0) # now_utc = timezone.now() # now = now_utc.astimezone(self.timezone()) - return start >= timezone.now() + return self.start_date >= timezone.now() def has_ended(self): return self.end_date is not None