MCPcopy Create free account
hub / github.com/Syncplay/syncplay / areAllUsersInRoomReady

Method areAllUsersInRoomReady

syncplay/client.py:1532–1548  ·  view source on GitHub ↗
(self, requireSameFilenames=False)

Source from the content-addressed store, hash-verified

1530 return True
1531
1532 def areAllUsersInRoomReady(self, requireSameFilenames=False):
1533 if not self.currentUser.isReady():
1534 return False
1535 for user in self._users.values():
1536 if user.room == self.currentUser.room:
1537 if user.isReadyWithFile() == False:
1538 return False
1539 elif (
1540 requireSameFilenames and
1541 (
1542 self.currentUser.file is None
1543 or user.file is None
1544 or not utils.sameFilename(self.currentUser.file['name'], user.file['name'])
1545 )
1546 ):
1547 return False
1548 return True
1549
1550 def areAllOtherUsersInRoomReady(self):
1551 for user in self._users.values():

Callers 3

autoplayConditionsMetMethod · 0.80

Calls 2

isReadyMethod · 0.45
isReadyWithFileMethod · 0.45

Tested by

no test coverage detected