diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 3da01562..779511d8 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -1721,9 +1721,10 @@ def interactive_flexchart_stacked(id, r, xparam='time', if metricsdicts[column]['maysmooth']: nrsteps = int(log2(r.usersmooth)) for i in range(nrsteps): + column_ew = utils.ewmovingaverage( + rowdata[column], 5) rowdata = rowdata.with_columns( - utils.ewmovingaverage( - rowdata[column], 5).alias(column) + column = column_ew ) except KeyError: pass diff --git a/rowers/models.py b/rowers/models.py index 08b45b26..178394db 100644 --- a/rowers/models.py +++ b/rowers/models.py @@ -3702,7 +3702,7 @@ class Workout(models.Model): except AttributeError: dates = '' try: - durations = self.duration.strftime("%H:%M:%S"), + durations = self.duration.strftime("%H:%M:%S") except AttributeError: durations = '' diff --git a/rowers/tests/testdata/testdata.tcx.gz b/rowers/tests/testdata/testdata.tcx.gz index 8f7a4540..2cc0fd32 100644 Binary files a/rowers/tests/testdata/testdata.tcx.gz and b/rowers/tests/testdata/testdata.tcx.gz differ