]> git.parisson.com Git - teleforma.git/commitdiff
WIP
authorYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 7 May 2020 12:14:41 +0000 (14:14 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 7 May 2020 12:14:41 +0000 (14:14 +0200)
teleforma/models/core.py

index 5e897b218a9ee4bb8d763fb1dfbb68855849ba46..be420823c8dc9b59358e0e34e5871fca2512b410 100644 (file)
@@ -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):