コード例 #1
0
def get_genre_names(repo: AbstractRepository):
    tags = repo.get_genres()
    tag_names = [tag.genre_name for tag in tags]

    return tag_names
コード例 #2
0
def get_genre_names(repo: AbstractRepository):
    genres = repo.get_genres()
    genre_names = [genre.genre_name for genre in genres]
    return genre_names