fix error when no value given
This commit is contained in:
parent
7e9f0779cc
commit
39d058358b
1 changed files with 5 additions and 1 deletions
6
db.py
6
db.py
|
@ -56,7 +56,11 @@ class BaseDeDonnees:
|
|||
Même but que `affichageResultat()` mais avec
|
||||
les clés qui correspondent aux valeurs.
|
||||
"""
|
||||
valeurs = self.affichageResultat(curseur)[0]
|
||||
valeurs = self.affichageResultat(curseur)
|
||||
if len(valeurs) == 0:
|
||||
valeurs = []
|
||||
else:
|
||||
valeurs = valeurs[0]
|
||||
if type(cles) not in [list, tuple]:
|
||||
cles = [cles]
|
||||
if len(cles) != len(valeurs):
|
||||
|
|
Reference in a new issue