diff --git a/rowers/polarstuff.py b/rowers/polarstuff.py index e6fe6025..83c1b6d1 100644 --- a/rowers/polarstuff.py +++ b/rowers/polarstuff.py @@ -299,7 +299,7 @@ def get_polar_workout(user,id,transactionid): if response.status_code == 200: exerciseurls = response.json()['exercises'] for exerciseurl in exerciseurls: - response = requests.gedt(exerciseurl,headers=headers) + response = requests.get(exerciseurl,headers=headers) if response.status_code == 200: exercise_dict = response.json() thisid = exercise_dict['id'] diff --git a/rowers/templates/flexchart3otw.html b/rowers/templates/flexchart3otw.html index ff4cfa16..e675ca2d 100644 --- a/rowers/templates/flexchart3otw.html +++ b/rowers/templates/flexchart3otw.html @@ -19,6 +19,17 @@ {{ the_script |safe }} +

+ {% if workout|previousworkout:rower.user %} + Previous  + {% endif %} + {% if workout|nextworkout:rower.user %} + Next + {% endif %} +

+

Flexible Chart

diff --git a/rowers/templates/summary_edit.html b/rowers/templates/summary_edit.html index 62957cca..f0bc4592 100644 --- a/rowers/templates/summary_edit.html +++ b/rowers/templates/summary_edit.html @@ -6,6 +6,17 @@ {% block title %}Change Workout {% endblock %} {% block main %} +

+ {% if workout|previousworkout:rower.user %} + Previous  + {% endif %} + {% if workout|nextworkout:rower.user %} + Next + {% endif %} +

+

Edit Workout Interval Data