From ecaeba13ff614f01d470354eb512d0b33c803bda Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Thu, 7 May 2020 14:14:41 +0200 Subject: [PATCH] WIP --- teleforma/models/core.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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): -- 2.39.5