def sauveurBis(self,a,b,c,d):
     db.create_all()
     db.session.add(Event(a,b,c,d))
     db.session.commit()
 def eliminator(self, value):
     db.create_all()
     Event.query.filter_by(nom_event = value).delete()
     db.session.commit()
 def getter(self , a):
     #ici le but sera de recuperer toutes les events dune enseigne a partir de lid_enseigne
     db.create_all()
     truc = Event.query.filter_by(id_enseigne=a).all()
     return truc
 def sauveur(self,a,b,c):
     db.create_all()
     d = "Null"
     db.session.add(Event(a,b,c,d))
     db.session.commit()
 def getterName(self,name):
     db.create_all()
     vlum = Logueur.query.filter_by(id = name).first()
     return vlum.name
 def getter(self,a):
     db.create_all()
     truc = Logueur.query.filter_by(name = a).first()
     return truc.id
 def sauveur(self,a,b,c,d):
     db.create_all()
     db.session.add(Tara(a,b,c,d))
     db.session.commit()
 def getter(self , a):
     db.create_all()
     truc = Enseigne.query.filter_by(_id = a).first()
     return truc.id_events
 def getName(self,i):
     db.create_all()
     a = Point.query.filter_by(id = i).first()
     return a