def single_account_tournaments_display(user): tournament_ids = user.tournaments tournaments_data = [] ## [id, date, name, location, place] if tournament_ids: tournaments = Tournament.get_tournaments_by_uuid_list(tournament_ids) for tournament in tournaments: tournaments_data.append([ tournament.id, tournament.datetime, tournament.name, tournament.center_short_location, tournament.get_place(user.id) ]) return tournaments_data