fixed thumbnail fav charts bug
This commit is contained in:
@@ -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 = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user