remplissage BDD -> 22/05
This commit is contained in:
parent
cac8aad0c5
commit
a72986fbd9
2 changed files with 2 additions and 0 deletions
BIN
baseFilms.db
BIN
baseFilms.db
Binary file not shown.
|
@ -98,8 +98,10 @@ class filmSQ():
|
||||||
c = conn.cursor()
|
c = conn.cursor()
|
||||||
try:
|
try:
|
||||||
if nom == 'acteurs':
|
if nom == 'acteurs':
|
||||||
|
print('acteurs')
|
||||||
c.execute("""SELECT name FROM acteurs WHERE iFilm=?""", (self.i,))
|
c.execute("""SELECT name FROM acteurs WHERE iFilm=?""", (self.i,))
|
||||||
r = c.fetchall()
|
r = c.fetchall()
|
||||||
|
print(r)
|
||||||
res = [a[0] for a in r]
|
res = [a[0] for a in r]
|
||||||
else:
|
else:
|
||||||
c.execute("""SELECT %s FROM films WHERE idN=:idN""" % nom, {"idN":self.idN})
|
c.execute("""SELECT %s FROM films WHERE idN=:idN""" % nom, {"idN":self.idN})
|
||||||
|
|
Loading…
Reference in a new issue