diff --git a/INITBASE/loader.py b/INITBASE/loader.py index c1d0b31..304d387 100755 --- a/INITBASE/loader.py +++ b/INITBASE/loader.py @@ -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: diff --git a/SRC/public/imgs/avatar/1.png b/SRC/public/imgs/avatar/1.png old mode 100755 new mode 100644 index f9231f5..3030d1f Binary files a/SRC/public/imgs/avatar/1.png and b/SRC/public/imgs/avatar/1.png differ