Private
Public Access
1
0

fixed thumbnail fav charts bug

This commit is contained in:
Sander Roosendaal
2018-11-19 21:28:09 +01:00
parent f155e9800c
commit 3a16d9b786

View File

@@ -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 = []