Merge tag 'v6.24' into develop
bug fix
This commit is contained in:
@@ -1044,7 +1044,12 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
|
|||||||
ishard = False
|
ishard = False
|
||||||
if workouttype == 'water':
|
if workouttype == 'water':
|
||||||
df = getsmallrowdata_db(['power', 'workoutid', 'time'], ids=[w.id])
|
df = getsmallrowdata_db(['power', 'workoutid', 'time'], ids=[w.id])
|
||||||
if df['power'].mean():
|
try:
|
||||||
|
powermean = df['power'].mean()
|
||||||
|
except KeyError:
|
||||||
|
powermean = 0
|
||||||
|
|
||||||
|
if powermean != 0:
|
||||||
thesecs = totaltime
|
thesecs = totaltime
|
||||||
maxt = 1.05 * thesecs
|
maxt = 1.05 * thesecs
|
||||||
if maxt > 0:
|
if maxt > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user