def get_genre_names(repo: AbstractRepository): tags = repo.get_genres() tag_names = [tag.genre_name for tag in tags] return tag_names
def get_genre_names(repo: AbstractRepository): genres = repo.get_genres() genre_names = [genre.genre_name for genre in genres] return genre_names