mirror of
https://github.com/Syncplay/syncplay
synced 2025-01-05 14:20:33 +00:00
Simply version check util
This commit is contained in:
parent
c8e3426547
commit
6143786b74
@ -213,9 +213,7 @@ def sameFileduration (duration1, duration2):
|
||||
def meetsMinVersion(version, minVersion):
|
||||
def versiontotuple(ver):
|
||||
return tuple(map(int, ver.split(".")))
|
||||
versionTuple = versiontotuple(version)
|
||||
minVersionTuple = versiontotuple(minVersion)
|
||||
return versionTuple >= minVersionTuple
|
||||
return versiontotuple(version) >= versiontotuple(minVersion)
|
||||
|
||||
class RoomPasswordProvider(object):
|
||||
CONTROLLED_ROOM_REGEX = re.compile("^\+(.*):(\w{12})$")
|
||||
|
Loading…
Reference in New Issue
Block a user