workouts without power
This commit is contained in:
@@ -1044,7 +1044,12 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
|
||||
ishard = False
|
||||
if workouttype == 'water':
|
||||
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
|
||||
maxt = 1.05 * thesecs
|
||||
if maxt > 0:
|
||||
|
||||
Reference in New Issue
Block a user