Skip to content
Snippets Groups Projects
Commit 300cb4f7 authored by dnns01's avatar dnns01
Browse files

Fix quality gate failing

parent 40a95967
Branches master
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ class AppointmentView(discord.ui.View):
async def on_skip(self, interaction: discord.Interaction, button: discord.ui.Button):
await interaction.response.defer(thinking=False)
if appointment := Appointment.get_or_none(Appointment.message == interaction.message.id):
if interaction.user.id == appointment.author or utils.is_mod(interaction.user):
if interaction.user.id == appointment.author:
new_date_time = appointment.date_time + timedelta(days=appointment.recurring)
Appointment.update(date_time=new_date_time, reminder_sent=False).where(
Appointment.id == appointment.id).execute()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment