1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-03 18:02:50 +02:00

Display the BBB link of a pool

This commit is contained in:
Yohann D'ANELLO
2021-01-21 22:32:43 +01:00
parent fd4280426b
commit 9e559db4b4
3 changed files with 113 additions and 102 deletions

View File

@ -353,6 +353,10 @@ class Pool(models.Model):
validators=[RegexValidator("[a-z]{3}-[a-z]{3}-[a-z]{3}")],
)
@property
def bbb_url(self):
return f"https://visio.animath.live/b/{self.bbb_code}"
@property
def solutions(self):
return Solution.objects.filter(participation__in=self.participations, final_solution=self.tournament.final)