Skip to content

Commit

Permalink
Update erm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeyUsersREC authored Apr 2, 2024
1 parent fe726ab commit be8bde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erm.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ async def tempban_checks():
if punishment_item['UserID'] not in [i.user_id for i in cached_servers[punishment_item['Guild']]]:
continue

sorted_punishments = sorted([i async for i in await bot.punishments.db.find({"UserID": punishment_item['UserID'], "Guild": punishment_item['Guild']})], key=lambda x: x['Epoch'], reverse=True)
sorted_punishments = sorted([i async for i in bot.punishments.db.find({"UserID": punishment_item['UserID'], "Guild": punishment_item['Guild']})], key=lambda x: x['Epoch'], reverse=True)
new_sorted_punishments = []
for item in sorted_punishments:
if item == punishment_item:
Expand Down

0 comments on commit be8bde5

Please sign in to comment.