From 4084f7abb5c6f39c48a64c111f0dc26ff617e757 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 3 Apr 2021 22:15:03 +0200 Subject: [PATCH] Fix solution upload --- apps/participation/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/participation/views.py b/apps/participation/views.py index 51670c2..c85a909 100644 --- a/apps/participation/views.py +++ b/apps/participation/views.py @@ -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)