예제 #1
0
 def __getitem__(self, item):
     """Get all scores for a particular object."""
     return django_recommend.scores_for(item)
예제 #2
0
 def __getitem__(self, quote):
     """Get all user ratings for this quote."""
     return collections.defaultdict(lambda: 0,
                                    django_recommend.scores_for(quote))
예제 #3
0
 def __getitem__(self, quote):
     """Get all user ratings for this quote."""
     return collections.defaultdict(
         lambda: 0, django_recommend.scores_for(quote))