Private
Public Access
1
0

flexchart advance error when logged out bug fix

This commit is contained in:
Sander Roosendaal
2017-02-14 21:09:14 +01:00
parent f1fde0d155
commit 5fb444eb39
2 changed files with 3 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ class Command(BaseCommand):
res += ['fail: '+name]
donotdelete = 1
try:
dd = send_confirm(u,name,link)
dd = send_confirm(rr.user,name,link)
except:
pass

View File

@@ -3003,7 +3003,8 @@ def workout_flexchart3_view(request,*args,**kwargs):
favorites = FavoriteChart.objects.filter(user=r,
workouttype__in=[workouttype,'both']).order_by("id")
maxfav = len(favorites)-1
except:
except:
favorites = None
maxfav = 0
# check if favoritenr is not out of range