Example #1
0
 def get_related_film_ids(self, film_id):
     related_films = vue.get_similar_to(film_id)
     known = vue.get_known_film_ids()
     ret = set(related_films) & set(known)
     return ret
Example #2
0
 def get_related_film_ids(self, film_id):
     related_films = vue.get_similar_to(film_id)
     known = vue.get_known_film_ids()
     ret = set(related_films) & set(known)
     return ret
Example #3
0
 def get_films(self):
     known_ids = vue.get_known_film_ids()
     return Film.objects.filter(id__in=known_ids)
Example #4
0
 def get_films(self):
     known_ids = vue.get_known_film_ids()
     return Film.objects.filter(id__in=known_ids)