From e51e0f475eb288fa0ea4bec700e61a789e114721 Mon Sep 17 00:00:00 2001 From: GZod01 Date: Mon, 16 Dec 2024 13:37:30 +0100 Subject: [PATCH] g --- perso_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perso_commands.py b/perso_commands.py index 6f88abb..e715e0d 100644 --- a/perso_commands.py +++ b/perso_commands.py @@ -45,7 +45,7 @@ class PersoCommands(app_commands.Group): if " " in nom_court: await interaction.response.send_message("Le nom court ne doit pas contenir d'espaces",ephemeral=True) return - check_exist = await self.bot.db.execute("SELECT * FROM personnages WHERE nom_court=?",nom_court) + check_exist = await self.bot.db.execute("SELECT * FROM personnages WHERE nom_court=?", (nom_court,)) if check_exist.rowcount>0 or await check_exist.fetchone() is not None: await interaction.response.send_message("Ce nom court est déjà utilisé",ephemeral=True) return