mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-21 01:58:23 +02:00
Fix solution upload
This commit is contained in:
@ -573,7 +573,7 @@ class SolutionUploadView(LoginRequiredMixin, FormView):
|
||||
problem=form_sol.problem,
|
||||
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():
|
||||
form.add_error(None, _("You can't upload a solution after the deadline."))
|
||||
return self.form_invalid(form)
|
||||
|
Reference in New Issue
Block a user