fixing obscure Mike bug
This commit is contained in:
@@ -819,6 +819,7 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
|
||||
oarlength=2.89, inboard=0.88,
|
||||
forceunit='lbs',
|
||||
consistencychecks=False):
|
||||
|
||||
message = None
|
||||
powerperc = 100 * np.array([r.pw_ut2,
|
||||
r.pw_ut1,
|
||||
@@ -844,7 +845,8 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
|
||||
except:
|
||||
pass
|
||||
return new_workout_from_df(r, newdf,
|
||||
title=title,boattype=boattype)
|
||||
title=title,boattype=boattype,
|
||||
workouttype=workouttype)
|
||||
try:
|
||||
checks = row.check_consistency()
|
||||
allchecks = 1
|
||||
@@ -989,6 +991,7 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
|
||||
message = "Warning: This workout probably already exists in the database"
|
||||
privacy = 'hidden'
|
||||
|
||||
|
||||
w = Workout(user=r, name=title, date=workoutdate,
|
||||
workouttype=workouttype,
|
||||
boattype=boattype,
|
||||
@@ -1387,6 +1390,7 @@ def split_workout(r, parent, splitsecond, splitmode):
|
||||
def new_workout_from_df(r, df,
|
||||
title='New Workout',
|
||||
boattype='1x',
|
||||
workouttype='rower',
|
||||
parent=None,
|
||||
setprivate=False,
|
||||
forceunit='lbs',
|
||||
@@ -1413,7 +1417,6 @@ def new_workout_from_df(r, df,
|
||||
else:
|
||||
oarlength = 2.89
|
||||
inboard = 0.88
|
||||
workouttype = 'rower'
|
||||
notes = ''
|
||||
summary = ''
|
||||
makeprivate = False
|
||||
|
||||
Reference in New Issue
Block a user