mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-02-24 07:41:19 +00:00
Compare commits
2 Commits
4a094002f0
...
d3d72e090c
Author | SHA1 | Date | |
---|---|---|---|
|
d3d72e090c | ||
|
6c76f1e633 |
@ -622,7 +622,7 @@ class TournamentDetailView(MultiTableMixin, DetailView):
|
|||||||
context["available_notes_2"] = all(pool.results_available for pool in self.object.pools.filter(round=2).all())
|
context["available_notes_2"] = all(pool.results_available for pool in self.object.pools.filter(round=2).all())
|
||||||
|
|
||||||
if not self.object.final and notes and context["available_notes_2"] \
|
if not self.object.final and notes and context["available_notes_2"] \
|
||||||
and self.request.user.registration.is_volunteer:
|
and not self.request.user.is_anonymous and self.request.user.registration.is_volunteer:
|
||||||
context["team_selectable_for_final"] = next(participation for participation, _note in sorted_notes
|
context["team_selectable_for_final"] = next(participation for participation, _note in sorted_notes
|
||||||
if not participation.final)
|
if not participation.final)
|
||||||
|
|
||||||
@ -856,7 +856,7 @@ class SelectTeamFinalView(VolunteerMixin, DetailView):
|
|||||||
final_sol: Solution
|
final_sol: Solution
|
||||||
with open(regional_sol.file.path, 'rb') as f:
|
with open(regional_sol.file.path, 'rb') as f:
|
||||||
final_sol.file.save(regional_sol.file.name, f)
|
final_sol.file.save(regional_sol.file.name, f)
|
||||||
for registration in self.participation.team.participants:
|
for registration in self.participation.team.participants.all():
|
||||||
registration.send_email_final_selection()
|
registration.send_email_final_selection()
|
||||||
return redirect(reverse_lazy("participation:tournament_detail", args=(tournament.pk,)))
|
return redirect(reverse_lazy("participation:tournament_detail", args=(tournament.pk,)))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user