def update_scores(self, match): """ Update score of both Match and Player table Args: match: match to update """ while True: response = self.select.write_score_menu(match) if input_validators.is_valid_write_score_menu_response(response): break Match.update_score_match(self, match, response, self.match_table) Player.update_score_player(self, match, response, self.player_table)