From 61fed80e7436b4638a0923251b47fc59d2c95557 Mon Sep 17 00:00:00 2001 From: GZod01 Date: Sun, 15 Dec 2024 16:05:38 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20validation=20de=20la=20transa?= =?UTF-8?q?ction=20apr=C3=A8s=20l'insertion=20d'un=20personnage=20dans=20l?= =?UTF-8?q?a=20base=20de=20donn=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- perso_commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/perso_commands.py b/perso_commands.py index 530c2af..12ef2ed 100644 --- a/perso_commands.py +++ b/perso_commands.py @@ -52,6 +52,7 @@ class PersoCommands(app_commands.Group): res = await self.bot.db.execute("INSERT INTO personnages (nom_court,nom_complet,histoire,pouvoirs,age,sexe,uuid,guild_id,image) VALUES (?,?,?,?,?,?,?,?,?)",(nom_court,nom_complet,histoire,pouvoirs,age,sexe,uuid,guild_id,image_blob)) print(res) await res.close() + await self.bot.db.commit() except Exception as e: print(e) await interaction.response.send_message("Erreur lors de la création du personnage",ephemeral=True)