From 8ba85a74b77822ff89e1d18cd3f98a68439f0bbf Mon Sep 17 00:00:00 2001 From: kraktus <56031107+kraktus@users.noreply.github.com> Date: Thu, 24 Oct 2019 12:39:41 +0200 Subject: Requested changes --- bot/cogs/free.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bot/cogs/free.py b/bot/cogs/free.py index f8031a32a..e1554a4b4 100644 --- a/bot/cogs/free.py +++ b/bot/cogs/free.py @@ -76,10 +76,8 @@ class Free(Cog): # Get position in list, inactivity, and channel object # For each channel, add to embed.description sorted_channels = sorted(free_channels, key=itemgetter(0), reverse=True) - if len(sorted_channels) > 3: # display 3 channels max - sorted_channels = sorted_channels[:3] - for (inactive, channel) in sorted_channels: + for (inactive, channel) in sorted_channels[:3]: minutes, seconds = divmod(inactive, 60) if minutes > 59: hours, minutes = divmod(minutes, 60) -- cgit v1.2.3