Private
Public Access
1
0
This commit is contained in:
2024-05-26 13:51:53 +02:00
parent 896d9423e1
commit d367b5e97b
3 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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 = ''

Binary file not shown.