mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 19:02:33 +00:00
Fix solution upload
This commit is contained in:
parent
d4c7b39f46
commit
4084f7abb5
@ -573,7 +573,7 @@ class SolutionUploadView(LoginRequiredMixin, FormView):
|
|||||||
problem=form_sol.problem,
|
problem=form_sol.problem,
|
||||||
final_solution=self.participation.final)
|
final_solution=self.participation.final)
|
||||||
|
|
||||||
tournament = Tournament.final_tournament() if self.participation.final else self.participation.final
|
tournament = Tournament.final_tournament() if self.participation.final else self.participation.tournament
|
||||||
if timezone.now() > tournament.solution_limit and sol_qs.exists():
|
if timezone.now() > tournament.solution_limit and sol_qs.exists():
|
||||||
form.add_error(None, _("You can't upload a solution after the deadline."))
|
form.add_error(None, _("You can't upload a solution after the deadline."))
|
||||||
return self.form_invalid(form)
|
return self.form_invalid(form)
|
||||||
|
Loading…
Reference in New Issue
Block a user