bug fix
This commit is contained in:
@@ -1179,6 +1179,7 @@ def handle_nonpainsled(f2, fileformat, summary=''):
|
||||
|
||||
def new_workout_from_file(r, f2,
|
||||
workouttype='rower',
|
||||
workoutsource=None,
|
||||
title='Workout',
|
||||
boattype='1x',
|
||||
makeprivate=False,
|
||||
@@ -1273,13 +1274,16 @@ def new_workout_from_file(r, f2,
|
||||
dosummary = (fileformat != 'fit' and 'speedcoach2' not in fileformat)
|
||||
dosummary = dosummary or summary == ''
|
||||
|
||||
if workoutsource is None:
|
||||
workoutsource = fileformat
|
||||
|
||||
id, message = save_workout_database(
|
||||
f2, r,
|
||||
workouttype=workouttype,
|
||||
boattype=boattype,
|
||||
makeprivate=makeprivate,
|
||||
dosummary=dosummary,
|
||||
workoutsource=fileformat,
|
||||
workoutsource=workoutsource,
|
||||
summary=summary,
|
||||
inboard=inboard, oarlength=oarlength,
|
||||
title=title
|
||||
@@ -1390,6 +1394,7 @@ def split_workout(r, parent, splitsecond, splitmode):
|
||||
|
||||
def new_workout_from_df(r, df,
|
||||
title='New Workout',
|
||||
workoutsource='unknown',
|
||||
boattype='1x',
|
||||
workouttype='rower',
|
||||
parent=None,
|
||||
|
||||
Reference in New Issue
Block a user