bug fix flex chart
This commit is contained in:
@@ -6096,7 +6096,9 @@ def workout_flexchart3_view(request,*args,**kwargs):
|
|||||||
try:
|
try:
|
||||||
t = favorites[favoritenr].xparam
|
t = favorites[favoritenr].xparam
|
||||||
except IndexError:
|
except IndexError:
|
||||||
favoritenr=-1
|
favoritenr=0
|
||||||
|
except AssertionError:
|
||||||
|
favoritenr=0
|
||||||
|
|
||||||
if 'xparam' in kwargs:
|
if 'xparam' in kwargs:
|
||||||
xparam = kwargs['xparam']
|
xparam = kwargs['xparam']
|
||||||
@@ -6126,7 +6128,6 @@ def workout_flexchart3_view(request,*args,**kwargs):
|
|||||||
else:
|
else:
|
||||||
yparam2 = 'hr'
|
yparam2 = 'hr'
|
||||||
|
|
||||||
print favoritenr
|
|
||||||
if favoritenr>=0 and r.showfavoritechartnotes:
|
if favoritenr>=0 and r.showfavoritechartnotes:
|
||||||
favoritechartnotes = favorites[favoritenr].notes
|
favoritechartnotes = favorites[favoritenr].notes
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user