Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2018-10-28 16:45:58 +01:00
parent aca1f569b1
commit 39fcdc4fe5
5 changed files with 85 additions and 30 deletions

View File

@@ -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,