mirror of
https://github.com/Syncplay/syncplay
synced 2025-03-05 19:27:54 +00:00
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
|
||||
|
||||
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):
|
||||
if self.file:
|
||||
|
Loading…
Reference in New Issue
Block a user