From 73b08a360d03060fa3144efa68a09172706fee2d Mon Sep 17 00:00:00 2001 From: Elmon11 Date: Fri, 18 Dec 2020 18:03:49 +0100 Subject: [PATCH] Update server_commands.py --- commands/server_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/server_commands.py b/commands/server_commands.py index 2c2d361..810797b 100644 --- a/commands/server_commands.py +++ b/commands/server_commands.py @@ -238,7 +238,7 @@ class ServerCommands(commands.Cog): entries.append(format_list_entry(em, json[rank], f'{" ".join(rank_fixed)}')) order = ['Owners', 'Executives', 'Developers', 'Senior Admins', 'Admins', 'Master Builders', 'Operators', 'Imposters'] - sorted = [tpl for x in order for tpl in entries if tpl.name == x] + sorted = [entry for rank in order for entry in entries if entry.name == rank] for x in sorted: em.add_field(name=f'{x.name} ({x.playercount})', value=x.value, inline=False)