fixed thumbnail fav charts bug
This commit is contained in:
@@ -643,17 +643,7 @@ def get_thumbnails(request,id):
|
|||||||
|
|
||||||
aantalcomments = len(comments)
|
aantalcomments = len(comments)
|
||||||
|
|
||||||
workouttype = 'ote'
|
favorites,maxfav = getfavorites(r,row)
|
||||||
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
|
|
||||||
|
|
||||||
charts = []
|
charts = []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user