1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Reverse sort in matchmaking events

This commit is contained in:
Steffo 2020-04-11 00:22:52 +02:00
parent 1386aacef6
commit 68c7283a9a

View file

@ -87,7 +87,7 @@ class MatchmakingCommand(Command):
if mmevent.description: if mmevent.description:
text += f"{mmevent.description}\n" text += f"{mmevent.description}\n"
text += "\n" text += "\n"
for response in sorted(mmevent.responses, key=lambda r: self._mmchoice_values[r.choice]): for response in sorted(mmevent.responses, key=lambda r: -self._mmchoice_values[r.choice]):
response: MMResponse response: MMResponse
text += f"{response.choice.value} {response.user}\n" text += f"{response.choice.value} {response.user}\n"
return text return text