Private
Public Access
1
0

added record of workout origin

This commit is contained in:
Sander Roosendaal
2017-04-27 18:12:39 +02:00
parent c7447c3fad
commit 0d04132c3c
3 changed files with 37 additions and 4 deletions

View File

@@ -342,6 +342,7 @@ def timedeltaconv(x):
# Processes painsled CSV file to database
def save_workout_database(f2,r,dosmooth=True,workouttype='rower',
dosummary=True,title='Workout',
workoutsource='unknown',
notes='',totaldist=0,totaltime=0,
summary='',
makeprivate=False,
@@ -468,6 +469,7 @@ def save_workout_database(f2,r,dosmooth=True,workouttype='rower',
duration=duration,distance=totaldist,
weightcategory=r.weightcategory,
starttime=workoutstarttime,
workoutsource=workoutsource,
csvfilename=f2,notes=notes,summary=summary,
maxhr=maxhr,averagehr=averagehr,
startdatetime=workoutstartdatetime,
@@ -646,6 +648,7 @@ def new_workout_from_file(r,f2,
workouttype=workouttype,
makeprivate=makeprivate,
dosummary=dosummary,
workoutsource=fileformat,
summary=summary,
inboard=inboard,oarlength=oarlength,
title=title)