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

Method _addUserOnList

syncplay/protocols.py:663–675  ·  view source on GitHub ↗
(self, userlist, watcher)

Source from the content-addressed store, hash-verified

661 self.sendSet({"user": user})
662
663 def _addUserOnList(self, userlist, watcher):
664 room = watcher.getRoom()
665 if room:
666 if room.getName() not in userlist:
667 userlist[room.getName()] = {}
668 userFile = {
669 "position": 0,
670 "file": watcher.getFile() if watcher.getFile() else {},
671 "controller": watcher.isController(),
672 "isReady": watcher.isReady(),
673 "features": watcher.getFeatures()
674 }
675 userlist[room.getName()][watcher.getName()] = userFile
676
677 def _addDummyUserOnList(self, userlist, dummyRoom,dummyCount):
678 if dummyRoom not in userlist:

Callers 1

sendListMethod · 0.95

Calls 6

getFileMethod · 0.80
getRoomMethod · 0.45
getNameMethod · 0.45
isControllerMethod · 0.45
isReadyMethod · 0.45
getFeaturesMethod · 0.45

Tested by

no test coverage detected