Private
Public Access
1
0

putting dosmooth user setting to use

This commit is contained in:
Sander Roosendaal
2021-03-17 08:39:20 +01:00
parent fa4cee8fd6
commit e1b0a8e8bb
9 changed files with 16 additions and 4 deletions

View File

@@ -1677,8 +1677,9 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
# recalculate power data
if workouttype == 'rower' or workouttype == 'dynamic' or workouttype == 'slides':
try:
row.erg_recalculatepower()
row.write_csv(f2, gzip=True)
if r.erg_recalculatepower:
row.erg_recalculatepower()
row.write_csv(f2, gzip=True)
except:
pass