From 300cb4f7ab53040f981dec083ba69b9e7943d111 Mon Sep 17 00:00:00 2001 From: dnns01 <git@dnns01.de> Date: Fri, 25 Oct 2024 16:09:34 +0200 Subject: [PATCH] Fix quality gate failing --- views/appointment_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/appointment_view.py b/views/appointment_view.py index 724e066..0ac2efc 100644 --- a/views/appointment_view.py +++ b/views/appointment_view.py @@ -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() -- GitLab