mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 06:22:22 +00:00
Reduce delay to update the left bar to only 2 hours
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
84860a2875
commit
923b07b97e
@ -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 = _("<p>The solutions for the tournament of {tournament} are due on the {date:%Y-%m-%d %H:%M}.</p>"
|
||||
"<p>You have currently sent <strong>{nb_solutions}</strong> solutions. "
|
||||
"We suggest to send at least <strong>{min_solutions}</strong> different solutions.</p>"
|
||||
@ -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 = _("<p>The draw of the solutions for the tournament {tournament} is planned on the "
|
||||
"{date:%Y-%m-%d %H:%M}. You can join it on <a href='{url}'>this link</a>.</p>")
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user