Private
Public Access
1
0

two parameters with same name - bug fix

This commit is contained in:
Sander Roosendaal
2018-05-27 10:19:54 +02:00
parent 38b8bc5702
commit b5f0f41b41

View File

@@ -8480,11 +8480,11 @@ def workout_flexchart3_view(request,*args,**kwargs):
reststrokes = not workstrokesonly
r = getrower(request.user)
try:
r = metrics.yaxmaxima[xparam]
range = metrics.yaxmaxima[xparam]
if yparam1 is not None:
r = metrics.yaxmaxima[yparam1]
range = metrics.yaxmaxima[yparam1]
if yparam2 is not None:
r = metrics.yaxmaxima[yparam2]
range = metrics.yaxmaxima[yparam2]
f = FavoriteChart(user=r,xparam=xparam,
yparam1=yparam1,yparam2=yparam2,
plottype=plottype,workouttype=workouttype,