diff --git a/participation/models.py b/participation/models.py index 765e709..bb80f43 100644 --- a/participation/models.py +++ b/participation/models.py @@ -710,7 +710,7 @@ class Participation(models.Model): 'content': content, }) - if timezone.now() <= self.tournament.solution_limit + timedelta(hours=4): + if timezone.now() <= self.tournament.solution_limit + timedelta(hours=2): text = _("
The solutions for the tournament of {tournament} are due on the {date:%Y-%m-%d %H:%M}.
" "You have currently sent {nb_solutions} solutions. " "We suggest to send at least {min_solutions} different solutions.
" @@ -725,7 +725,7 @@ class Participation(models.Model): 'priority': 1, 'content': content, }) - elif timezone.now() <= self.tournament.solutions_draw + timedelta(hours=4): + elif timezone.now() <= self.tournament.solutions_draw + timedelta(hours=2): text = _("The draw of the solutions for the tournament {tournament} is planned on the " "{date:%Y-%m-%d %H:%M}. You can join it on this link.
") url = reverse_lazy("draw:index") @@ -737,7 +737,7 @@ class Participation(models.Model): 'priority': 1, 'content': content, }) - elif timezone.now() <= self.tournament.syntheses_first_phase_limit + timedelta(hours=4): + elif timezone.now() <= self.tournament.syntheses_first_phase_limit + timedelta(hours=2): pool = self.pools.get(round=1, tournament=self.tournament) defender_passage = pool.passages.get(defender=self) opponent_passage = pool.passages.get(opponent=self) @@ -782,7 +782,7 @@ class Participation(models.Model): 'priority': 1, 'content': content, }) - elif timezone.now() <= self.tournament.syntheses_second_phase_limit + timedelta(hours=4): + elif timezone.now() <= self.tournament.syntheses_second_phase_limit + timedelta(hours=2): pool = self.pools.get(round=2, tournament=self.tournament) defender_passage = pool.passages.get(defender=self) opponent_passage = pool.passages.get(opponent=self)