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/document_form.html b/rowers/templates/document_form.html index 6c899e79..67e38300 100644 --- a/rowers/templates/document_form.html +++ b/rowers/templates/document_form.html @@ -85,7 +85,7 @@ $( document ).ready(function() { $(this).val() == 'rower' || $(this).val() == 'skierg' || $(this).val() == 'dynamic' - || $(this).val() == 'sliders' + || $(this).val() == 'slides' || $(this).val() == 'paddle' || $(this).val() == 'snow' ) { 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 %}