remplissage brut BDD
This commit is contained in:
parent
601909c7cf
commit
3cece247c8
4 changed files with 20 additions and 18 deletions
3
TODO.md
3
TODO.md
|
@ -1,2 +1,3 @@
|
|||
* débug -> bien avancé
|
||||
* remplissage
|
||||
* rendre plus joli
|
||||
* corriger remplissage
|
||||
|
|
BIN
baseFilms.db
BIN
baseFilms.db
Binary file not shown.
|
@ -26,23 +26,24 @@ class film():
|
|||
self.couleur = _couleur
|
||||
self.formatCopie = "35mm"
|
||||
self.langST = "VOSTFR"
|
||||
self.image = ""
|
||||
|
||||
def __init__(self, dic):
|
||||
"""ceci est une aide"""
|
||||
self.i = dic['id']
|
||||
self.idN = dic['idN']
|
||||
self.date = dic['date']
|
||||
self.nom =dic['nom']
|
||||
self.acteurs = dic['acteurs']
|
||||
self.realisateur = dic['realisateur']
|
||||
self.duree =dic['duree']
|
||||
self.synopsis = dic['synopsis']
|
||||
self.pays = dic['pays']
|
||||
self.annee = dic['annee']
|
||||
self.youtube = dic['youtube']
|
||||
self.couleur = dic['couleur']
|
||||
self.formatCopie = dic['formatCopie']
|
||||
self.langST = dic['langST']
|
||||
# def __init__(self, dic):
|
||||
# """ceci est une aide"""
|
||||
# self.i = dic['id']
|
||||
# self.idN = dic['idN']
|
||||
# self.date = dic['date']
|
||||
# self.nom =dic['nom']
|
||||
# self.acteurs = dic['acteurs']
|
||||
# self.realisateur = dic['realisateur']
|
||||
# self.duree =dic['duree']
|
||||
# self.synopsis = dic['synopsis']
|
||||
# self.pays = dic['pays']
|
||||
# self.annee = dic['annee']
|
||||
# self.youtube = dic['youtube']
|
||||
# self.couleur = dic['couleur']
|
||||
# self.formatCopie = dic['formatCopie']
|
||||
# self.langST = dic['langST']
|
||||
|
||||
|
||||
def blog(self):
|
||||
|
@ -254,7 +255,7 @@ def liste(db):
|
|||
lis = sorted(lis)
|
||||
for tup in lis:
|
||||
k = tup[1]
|
||||
print(k, ' : ', db[k].nom)
|
||||
print(k, ' : ', db[k].i, db[k].nom)
|
||||
return None
|
||||
|
||||
|
||||
|
|
BIN
filmsShelve
BIN
filmsShelve
Binary file not shown.
Loading…
Reference in a new issue