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

Method __lt__

syncplay/server.py:835–840  ·  view source on GitHub ↗
(self, b)

Source from the content-addressed store, hash-verified

833 self._connector.setPlaylist(username, files)
834
835 def __lt__(self, b):
836 if self.getPosition() is None or self._file is None:
837 return False
838 if b.getPosition() is None or b.getFile() is None:
839 return True
840 return self.getPosition() < b.getPosition()
841
842 def _scheduleSendState(self):
843 self._sendStateTimer = task.LoopingCall(self._askForStateUpdate)

Callers

nothing calls this directly

Calls 3

getPositionMethod · 0.95
getFileMethod · 0.80
getPositionMethod · 0.45

Tested by

no test coverage detected