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

Method writeToDb

syncplay/server.py:581–585  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

579 return ''.join([c if c not in blacklist and ord(c) >= 32 else placeholder for c in filename])
580
581 def writeToDb(self):
582 if not self.isPersistent():
583 return
584 processed_playlist = getListAsMultilineString(self._playlist)
585 self._roomsDbHandle.saveRoom(self._name, processed_playlist, self._playlistIndex, self._position, self._lastSavedUpdate)
586
587 def loadRoom(self, room):
588 name, playlist, playlistindex, position, lastupdate = room

Callers 6

setPausedMethod · 0.95
setPositionMethod · 0.95
removeWatcherMethod · 0.95
setPlaylistMethod · 0.95
setPlaylistIndexMethod · 0.95
removeWatcherMethod · 0.80

Calls 3

isPersistentMethod · 0.95
getListAsMultilineStringFunction · 0.90
saveRoomMethod · 0.80

Tested by

no test coverage detected