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:
@ -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()) \
|
||||
|
Reference in New Issue
Block a user