mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 19:02:33 +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,
|
'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>"
|
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. "
|
"<p>You have currently sent <strong>{nb_solutions}</strong> solutions. "
|
||||||
"We suggest to send at least <strong>{min_solutions}</strong> different solutions.</p>"
|
"We suggest to send at least <strong>{min_solutions}</strong> different solutions.</p>"
|
||||||
@ -725,7 +725,7 @@ class Participation(models.Model):
|
|||||||
'priority': 1,
|
'priority': 1,
|
||||||
'content': content,
|
'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 "
|
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>")
|
"{date:%Y-%m-%d %H:%M}. You can join it on <a href='{url}'>this link</a>.</p>")
|
||||||
url = reverse_lazy("draw:index")
|
url = reverse_lazy("draw:index")
|
||||||
@ -737,7 +737,7 @@ class Participation(models.Model):
|
|||||||
'priority': 1,
|
'priority': 1,
|
||||||
'content': content,
|
'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)
|
pool = self.pools.get(round=1, tournament=self.tournament)
|
||||||
defender_passage = pool.passages.get(defender=self)
|
defender_passage = pool.passages.get(defender=self)
|
||||||
opponent_passage = pool.passages.get(opponent=self)
|
opponent_passage = pool.passages.get(opponent=self)
|
||||||
@ -782,7 +782,7 @@ class Participation(models.Model):
|
|||||||
'priority': 1,
|
'priority': 1,
|
||||||
'content': content,
|
'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)
|
pool = self.pools.get(round=2, tournament=self.tournament)
|
||||||
defender_passage = pool.passages.get(defender=self)
|
defender_passage = pool.passages.get(defender=self)
|
||||||
opponent_passage = pool.passages.get(opponent=self)
|
opponent_passage = pool.passages.get(opponent=self)
|
||||||
|
Loading…
Reference in New Issue
Block a user