From c39109476b28f019a91cd63f7a2b4e5ab995f99b Mon Sep 17 00:00:00 2001 From: GZod01 Date: Wed, 18 Dec 2024 09:36:10 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20du=20nom=20de=20param=C3=A8tre=20d?= =?UTF-8?q?ans=20la=20commande=20'lister=5Ftout'=20pour=20une=20coh=C3=A9r?= =?UTF-8?q?ence=20dans=20le=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- perso_commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perso_commands.py b/perso_commands.py index 4691a23..4844a72 100644 --- a/perso_commands.py +++ b/perso_commands.py @@ -120,15 +120,15 @@ class PersoCommands(app_commands.Group): @app_commands.command(name="lister_tout",description="Liste tous les personnages") @app_commands.describe(universe_code="Le code de l'univers duquel afficher les personnages",output_hidden="Afficher les personnages de manière cachée") - async def list_all_characters(self,interaction:discord.Interaction,univers_code:str="",output_hidden:bool=True): + async def list_all_characters(self,interaction:discord.Interaction,universe_code:str="",output_hidden:bool=True): #admin if interaction.user.id !=super_owner_id: await interaction.response.send_message("Vous n'avez pas la permission d'exécuter cette commande",ephemeral=True) return print("perso list") res=None - if univers_code!="": - res = await self.bot.db.execute("SELECT * FROM personnages WHERE universe=?", (univers_code,)) + if universe_code!="": + res = await self.bot.db.execute("SELECT * FROM personnages WHERE universe=?", (universe_code,)) else: res = await self.bot.db.execute("SELECT * FROM personnages") rows = await res.fetchall()