From b5f0f41b415996285b3ebf7e1e9bed88860c8a86 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 27 May 2018 10:19:54 +0200 Subject: [PATCH] two parameters with same name - bug fix --- rowers/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rowers/views.py b/rowers/views.py index a2558be9..bc42b34d 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -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,