mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 01:32:05 +01:00 
			
		
		
		
	Fix solution upload
This commit is contained in:
		@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user