diff --git a/rowers/views.py b/rowers/views.py index 3c62bafd..790209f4 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -643,17 +643,7 @@ def get_thumbnails(request,id): aantalcomments = len(comments) - workouttype = 'ote' - if row.workouttype in mytypes.otwtypes: - workouttype = 'otw' - - try: - favorites = FavoriteChart.objects.filter(user=r, - workouttype__in=[workouttype,'both']).order_by("id") - maxfav = len(favorites)-1 - except: - favorites = None - maxfav = 0 + favorites,maxfav = getfavorites(r,row) charts = []