From 5b3c0768f721381bd4dfc8cd2c748eb488492d24 Mon Sep 17 00:00:00 2001 From: Elmon11 Date: Tue, 1 Dec 2020 23:01:48 +0100 Subject: [PATCH] Future proofing tf!list to work iterably; DRY code --- commands/server_commands.py | 1 - 1 file changed, 1 deletion(-) diff --git a/commands/server_commands.py b/commands/server_commands.py index e0024db..ae82175 100644 --- a/commands/server_commands.py +++ b/commands/server_commands.py @@ -226,7 +226,6 @@ class ServerCommands(commands.Cog): else: em.description = f"There are {json['online']} / {json['max']} online players" ranks = list(json.keys()) - ranks.reverse() for rank in ranks: if rank not in ['max', 'online'] and json[rank]: rank = rank.split('_')