@property
    def albums(self):
        # FIXME: Optimize. Check comments for Album.artists method.
        albums = []

        for track in self.tracks:
            for album in track.albums:
                if album not in albums:
                    albums.append(album)

        return albums
dataset/ETHPy150Open tooxie/shiva-server/shiva/models.py/Artist.albums/original