From: Yoan Le Clanche Date: Thu, 7 May 2020 12:14:41 +0000 (+0200) Subject: WIP X-Git-Tag: 2.8.1-pro~187^2~12 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ecaeba13ff614f01d470354eb512d0b33c803bda;p=teleforma.git WIP --- diff --git a/teleforma/models/core.py b/teleforma/models/core.py index 5e897b21..be420823 100644 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -561,16 +561,21 @@ class WebclassMixin(Model): self.webclass_id = meeting_id self.webclass_password = password + @property + def participant_slot_available(self): + """ + is there any slot available for another participants + """ + if self.webclass and self.webclass_max_participants: + auditors = self.auditor.count() + return auditors < self.webclass_max_participants + return True - def join_webclass(self, username): + def join_webclass(self): """ """ - print(bbb.get_join_meeting_url('user','fake2', 'pw')) def get_webclass_info(self): """ """ - info = bbb.get_meeting_info(self.webclass_id) - import pdb;pdb.set_trace() - class Conference(Displayable, WebclassMixin):