Controllers listed first
This commit is contained in:
parent
fc5f1e62c9
commit
1db7c73c42
@ -524,7 +524,10 @@ class SyncplayUser(object):
|
|||||||
return sameName and sameSize and sameDuration
|
return sameName and sameSize and sameDuration
|
||||||
|
|
||||||
def __lt__(self, other):
|
def __lt__(self, other):
|
||||||
return self.username.lower() < other.username.lower()
|
if self.isController() == other.isController():
|
||||||
|
return self.username.lower() < other.username.lower()
|
||||||
|
else:
|
||||||
|
return self.isController() > other.isController()
|
||||||
|
|
||||||
def __repr__(self, *args, **kwargs):
|
def __repr__(self, *args, **kwargs):
|
||||||
if self.file:
|
if self.file:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user