diff options
author | 2019-10-24 12:39:41 +0200 | |
---|---|---|
committer | 2019-10-24 12:39:41 +0200 | |
commit | 8ba85a74b77822ff89e1d18cd3f98a68439f0bbf (patch) | |
tree | a8a45aec97111e3fcc7ff93550a7918cc9318a06 | |
parent | Add a footer and one-line a string (diff) |
Requested changes
-rw-r--r-- | bot/cogs/free.py | 4 |
1 files changed, 1 insertions, 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) |