Beispiel #1
0
 def save(self):
     db = DBStorage()
     p = Patient()
     p.name = self.firstName.data
     p.last_name = self.lastname.data
     p.email = self.email.data
     p.phone = self.phone_no.data
     db.add_patient(p)
Beispiel #2
0
 def save(self):
     """function to save the info getting from wtforms"""
     db = DBStorage()
     p = Patient()
     p.name = self.firstName.data
     p.last_name = self.lastname.data
     p.email = self.email.data
     p.phone = self.phone_no.data
     db.add_patient(p)