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

Method moveWatcher

syncplay/server.py:473–477  ·  view source on GitHub ↗
(self, watcher, roomName)

Source from the content-addressed store, hash-verified

471 return emptyPersistentRooms
472
473 def moveWatcher(self, watcher, roomName):
474 roomName = truncateText(roomName, constants.MAX_ROOM_NAME_LENGTH)
475 self.removeWatcher(watcher)
476 room = self._getRoom(roomName)
477 room.addWatcher(watcher)
478
479 def removeWatcher(self, watcher):
480 oldRoom = watcher.getRoom()

Callers 2

setWatcherRoomMethod · 0.45
moveWatcherMethod · 0.45

Calls 4

removeWatcherMethod · 0.95
_getRoomMethod · 0.95
truncateTextFunction · 0.90
addWatcherMethod · 0.45

Tested by

no test coverage detected