

def vote_list(self):
    vote_list = self.storage.get_votes()
    if (vote_list is None):
        vote_list = []
        for item in self.get_items():
            for rating in self.get_ratings(item):
                user = self.get_rating_user(rating)
                score = self.get_rating_score(rating)
                site = self.get_rating_site(rating)
                if isinstance(site, Site):
                    site_id = site.id
                else:
                    site_id = site
                identifier = self.storage.get_identifier(item, site_id)
                vote_list.append((user, identifier, score))
        self.storage.store_votes(vote_list)
    return vote_list

dataset/ETHPy150Open fcurella/django-recommends/recommends/providers/__init__.py RecommendationProvider.vote_list/original