def update_ticket(self, title, new_completed):
    self.tickets[title]['completed'] = new_completed
    self.write_tickets()
    self.read_tickets()
def update_ticket(self, title, new_completed):
    self.tickets[title]['completed'] = new_completed
    self.write_tickets()
    self.read_tickets()