mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Sort brawlhalla duos by rating
This commit is contained in:
parent
916dcbad23
commit
22d534f3e8
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class BrawlhallaCommand(LinkerCommand):
|
||||||
if len(bh.duos) != 0:
|
if len(bh.duos) != 0:
|
||||||
string.append(f"👥 [b]2v2[/b]")
|
string.append(f"👥 [b]2v2[/b]")
|
||||||
|
|
||||||
for duo in bh.duos:
|
for duo in sorted(bh.duos, key=lambda d: -d.rating_2v2):
|
||||||
other = duo.other(bh)
|
other = duo.other(bh)
|
||||||
string.append(f"Con [b]{other.steam.user}[/b]: [b]{duo.rank_2v2}[/b] ({duo.rating_2v2} MMR)")
|
string.append(f"Con [b]{other.steam.user}[/b]: [b]{duo.rank_2v2}[/b] ({duo.rating_2v2} MMR)")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue