Skip to content

Commit

Permalink
Update menus.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeyUsersREC authored Mar 31, 2024
1 parent d8fc3f7 commit adaf68b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -8235,13 +8235,10 @@ async def erase_type_shifts(self, interaction: discord.Interaction, button: disc
ephemeral=True
)

async for item in self.bot.shift_management.shifts.db.find({
await self.bot.shift_management.shifts.db.delete_many({
"Guild": interaction.guild.id,
"Type": modal.shift_type.value
}):
await self.bot.shift_management.shifts.delete_by_id(item['_id'])


})

class ManagementOptions(discord.ui.View):
def __init__(self, user_id: int):
Expand Down

0 comments on commit adaf68b

Please sign in to comment.