Future proofing tf!list to work iterably; DRY code

This commit is contained in:
Elmon11 2020-12-01 23:01:48 +01:00 committed by GitHub
parent b8d1862678
commit 5b3c0768f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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('_')