diff --git a/__pycache__/base_de_donnee.cpython-38.pyc b/__pycache__/base_de_donnee.cpython-38.pyc index afa0c10..dfccfd0 100644 Binary files a/__pycache__/base_de_donnee.cpython-38.pyc and b/__pycache__/base_de_donnee.cpython-38.pyc differ diff --git a/__pycache__/interface.cpython-38.pyc b/__pycache__/interface.cpython-38.pyc index 665bfed..2170695 100644 Binary files a/__pycache__/interface.cpython-38.pyc and b/__pycache__/interface.cpython-38.pyc differ diff --git a/__pycache__/personnage.cpython-38.pyc b/__pycache__/personnage.cpython-38.pyc index a71ffde..c7bd502 100644 Binary files a/__pycache__/personnage.cpython-38.pyc and b/__pycache__/personnage.cpython-38.pyc differ diff --git a/base_de_donnee.py b/base_de_donnee.py index 13b9f1d..0b9f9a3 100644 --- a/base_de_donnee.py +++ b/base_de_donnee.py @@ -26,7 +26,7 @@ class BaseDeDonnee: def del_data(self, nom_perso): """suppression d'un element""" - self.cur.execute("DELETE FROM "+self.nom+"WHERE nom=?",(nom_perso,)) + self.cur.execute("DELETE FROM "+self.nom+" WHERE nom=?",(nom_perso,)) self.con.commit() def ajout_personnage(self,nom_perso,categorie,pdv,exp, inventaire): diff --git a/jdr_base.db b/jdr_base.db index 3a1868b..b086884 100644 Binary files a/jdr_base.db and b/jdr_base.db differ diff --git a/main.py b/main.py index 73f4c41..8f9e91c 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,7 @@ def nom_rnd(): res += choice(c_lst) else: res += choice(v_lst) - return res.title + return res.title() def combat(perso1, perso2): """simule un combat jusqu'à ce que les joueurs n'aient plus de vies"""