1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-23 21:16:36 +02:00

Add button to download all solutions and syntheses in a ZIP file

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2023-05-19 14:44:31 +02:00
parent 9bc0e99d6d
commit 29074c4bfd
5 changed files with 193 additions and 116 deletions

View File

@ -399,7 +399,7 @@ class Pool(models.Model):
@property
def solutions(self):
return Solution.objects.filter(participation__in=self.participations, final_solution=self.tournament.final)
return [passage.defended_solution for passage in self.passages.all()]
def average(self, participation):
return sum(passage.average(participation) for passage in self.passages.all()) \