From 14cdf6293c5d0b65aa7fcbcb159c08f6878d90dc Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Thu, 30 May 2024 18:55:41 +0200 Subject: [PATCH] creation date publish --- 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 c106bb2..100ffce 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -459,7 +459,7 @@ class Tournament(models.Model): if datetime.now().date() >= self.start_date.date(): return True if (len(self.groupstage_set.all()) > 0 or len(self.round_set.all()) > 0) and len(self.teamregistration_set.all()) >= 4: - minimum_publish_date = self.creation_date + timedelta(days=1) + minimum_publish_date = self.creation_date.replace(hour=9, minute=0) + timedelta(days=1) return timezone.now() >= minimum_publish_date return False