Merge branch 'master' of https://github.com/matthieupenchenat81/ModuleWeb
This commit is contained in:
commit
ce324172d2
@ -44,6 +44,10 @@ try :
|
||||
cur.execute("TRUNCATE table domaines")
|
||||
cur.execute("TRUNCATE table datations")
|
||||
cur.execute("TRUNCATE table oeuvres")
|
||||
cur.execute("TRUNCATE table referents")
|
||||
cur.execute("TRUNCATE table config_jeus")
|
||||
cur.execute("TRUNCATE table config_jeu_oeuvre")
|
||||
cur.execute("TRUNCATE table password_resets")
|
||||
|
||||
# On parcourt le fichier xml
|
||||
tree = ET.parse('inventaire.xml')
|
||||
@ -199,6 +203,10 @@ try :
|
||||
|
||||
idoeuvre = insert(cur,"oeuvres",datas)
|
||||
i+=1
|
||||
|
||||
#On Cree utilisateur decouvrir le musee
|
||||
datas = { "id" : "1", "nom": "Découverte", "image" : "imgs/avatar/1.png" }
|
||||
insert(cur,"referents",datas)
|
||||
con.commit()
|
||||
|
||||
except mdb.Error, e:
|
||||
|
BIN
SRC/public/imgs/avatar/1.png
Executable file → Normal file
BIN
SRC/public/imgs/avatar/1.png
Executable file → Normal file
Binary file not shown.
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 4.2 KiB |
Reference in New Issue
Block a user