remplissage BDD -> 22/05

This commit is contained in:
Alice 2018-04-27 21:19:38 +02:00
parent cac8aad0c5
commit a72986fbd9
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View file

@ -98,8 +98,10 @@ class filmSQ():
c = conn.cursor()
try:
if nom == 'acteurs':
print('acteurs')
c.execute("""SELECT name FROM acteurs WHERE iFilm=?""", (self.i,))
r = c.fetchall()
print(r)
res = [a[0] for a in r]
else:
c.execute("""SELECT %s FROM films WHERE idN=:idN""" % nom, {"idN":self.idN})