mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2024-12-22 15:44:57 +00:00
Future proofing tf!list to work iterably; DRY code
This commit is contained in:
parent
b8d1862678
commit
5b3c0768f7
1 changed files with 0 additions and 1 deletions
|
@ -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('_')
|
||||
|
|
Loading…
Reference in a new issue