tested
This commit is contained in:
@@ -1721,9 +1721,10 @@ def interactive_flexchart_stacked(id, r, xparam='time',
|
|||||||
if metricsdicts[column]['maysmooth']:
|
if metricsdicts[column]['maysmooth']:
|
||||||
nrsteps = int(log2(r.usersmooth))
|
nrsteps = int(log2(r.usersmooth))
|
||||||
for i in range(nrsteps):
|
for i in range(nrsteps):
|
||||||
|
column_ew = utils.ewmovingaverage(
|
||||||
|
rowdata[column], 5)
|
||||||
rowdata = rowdata.with_columns(
|
rowdata = rowdata.with_columns(
|
||||||
utils.ewmovingaverage(
|
column = column_ew
|
||||||
rowdata[column], 5).alias(column)
|
|
||||||
)
|
)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -3702,7 +3702,7 @@ class Workout(models.Model):
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
dates = ''
|
dates = ''
|
||||||
try:
|
try:
|
||||||
durations = self.duration.strftime("%H:%M:%S"),
|
durations = self.duration.strftime("%H:%M:%S")
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
durations = ''
|
durations = ''
|
||||||
|
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user