diff --git a/rowers/dataprep.py b/rowers/dataprep.py index b00136ab..ca63cac2 100644 --- a/rowers/dataprep.py +++ b/rowers/dataprep.py @@ -748,9 +748,8 @@ def fetchcp(rower,theworkouts,table='cpdata'): # create a new workout from manually entered data -def create_row_df(r,distance,duration,startdatetime, - title = 'Manually added workout',notes='', - workouttype='rower'): +def create_row_df(r,distance,duration,startdatetime,workouttype='rower'): + nr_strokes = int(distance/10.) @@ -808,10 +807,10 @@ def create_row_df(r,distance,duration,startdatetime, row.write_csv(csvfilename, gzip = True) id, message = save_workout_database(csvfilename, r, - title=title, - notes=notes, +# title=title, +# notes=notes, dosmooth=False, - workouttype=workouttype, +# workouttype=workouttype, consistencychecks=False, totaltime=totalseconds) diff --git a/rowers/templates/manualadd.html b/rowers/templates/manualadd.html index 60540df9..b5dff315 100644 --- a/rowers/templates/manualadd.html +++ b/rowers/templates/manualadd.html @@ -6,6 +6,34 @@ {% get_current_timezone as TIME_ZONE %} + +{% block scripts %} + + + +{% endblock %} + {% block content %}

Add Workout Manually

diff --git a/rowers/templates/workout_form.html b/rowers/templates/workout_form.html index 21165f3a..fcd4b1d7 100644 --- a/rowers/templates/workout_form.html +++ b/rowers/templates/workout_form.html @@ -18,7 +18,7 @@ - +