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 %} +
++ {% if workout|previousworkout:rower.user %} + Previous + {% endif %} + {% if workout|nextworkout:rower.user %} + Next + {% endif %} +
++ {% if workout|previousworkout:rower.user %} + Previous + {% endif %} + {% if workout|nextworkout:rower.user %} + Next + {% endif %} +
++ {% if workout|previousworkout:rower.user %} + Previous + {% endif %} + {% if workout|nextworkout:rower.user %} + Next + {% endif %} +
++ {% if workout|previousworkout:rower.user %} + Previous + {% endif %} + {% if workout|nextworkout:rower.user %} + Next + {% endif %} +
+