Private
Public Access
1
0

Manual Entry working

This commit is contained in:
Sander Roosendaal
2020-12-02 15:54:46 +01:00
parent b6785c9376
commit 78c6bfb345
3 changed files with 11 additions and 5 deletions

View File

@@ -1242,7 +1242,7 @@ def fetchcp(rower,theworkouts,table='cpdata'):
def create_row_df(r,distance,duration,startdatetime,workouttype='rower',
avghr=None,avgpwr=None,avgspm=None,
rankingpiece = False,
duplicate=False,
duplicate=False,rpe=-1,
title='Manual entry',notes='',weightcategory='hwt',
adaptiveclass='None'):
@@ -1351,6 +1351,7 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
workoutsource='unknown',
notes='', totaldist=0, totaltime=0,
rankingpiece=False,
rpe=-1,
duplicate=False,
summary='',
makeprivate=False,
@@ -1571,6 +1572,7 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
if title is not None and len(title)>140:
title = title[0:140]
w = Workout(user=r, name=title, date=workoutdate,
workouttype=workouttype,
boattype=boattype,
@@ -1583,6 +1585,7 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
workoutsource=workoutsource,
rankingpiece=rankingpiece,
forceunit=forceunit,
rpe=rpe,
csvfilename=f2, notes=notes, summary=summary,
maxhr=maxhr, averagehr=averagehr,
startdatetime=workoutstartdatetime,