def update_voyage(self): #Updates voyages voy = { 'destination': self.destination, 'date_from_iceland': self.date_from_iceland, 'date_back_to_iceland': self.date_back_to_iceland, 'pilot_captain': self.pilot_captain, 'pilot_copilot': self.pilot_copilot, 'flight_attendant_supervisor': self.flight_attendant_supervisor, 'flight_attendant': self.flight_attendant } storing = Database(6, voy) storing.update_data()
def update_employee(self): #Update a employee emp = { 'ssn': self.ssn, 'firstname': self.firstname, 'lastname': self.lastname, 'role': self.role, 'rank': self.rank, 'licence': self.licence, 'address': self.address, 'mobile': self.mobile, 'email': self.email_str, 'working': self.working, 'arriving': self.arriving } update = Database(2, emp) update.update_data()