From 0f4eb76845d7c392cbfcf668f8f9d387f044476b Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Thu, 11 Apr 2024 01:05:44 +0200 Subject: [PATCH] add comments --- bot/src/cogs/galtinn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/src/cogs/galtinn.py b/bot/src/cogs/galtinn.py index 041c236..2f42058 100644 --- a/bot/src/cogs/galtinn.py +++ b/bot/src/cogs/galtinn.py @@ -115,6 +115,7 @@ class Galtinn(commands.Cog): await interaction.response.defer() + # Check if user is already registered self.cursor.execute( """ SELECT * @@ -123,12 +124,12 @@ class Galtinn(commands.Cog): """, (interaction.user.id,), ) - if self.cursor.fetchone(): embed = embed_templates.error_warning("Du er allerede registrert med en Galtinnbruker!") await interaction.followup.send(embed=embed) return + # Check if user is already pending verification self.cursor.execute( """ SELECT *