diff --git a/rowers/c2stuff.py b/rowers/c2stuff.py index 5a132189..88e7d46e 100644 --- a/rowers/c2stuff.py +++ b/rowers/c2stuff.py @@ -192,7 +192,10 @@ def summaryfromsplitdata(splitdata,data,filename,sep='|'): totaldist = data['distance'] totaltime = data['time']/10. - spm = data['stroke_rate'] + try: + spm = data['stroke_rate'] + except KeyError: + spm = 0 try: resttime = data['rest_time']/10. except KeyError: diff --git a/rowers/templates/advancededit.html b/rowers/templates/advancededit.html index 5ab7140b..66a6c8c8 100644 --- a/rowers/templates/advancededit.html +++ b/rowers/templates/advancededit.html @@ -23,17 +23,17 @@
@@ -52,7 +52,7 @@@@ -80,7 +80,7 @@
{% if user|is_promember %} - Edit Intervals + Edit Intervals {% else %} Edit Intervals* {% endif %} @@ -96,7 +96,7 @@
{% if user|is_promember %} - Dist Metrics Plot + Dist Metrics Plot {% else %} Dist Metrics Plot* {% endif %} @@ -108,7 +108,7 @@
{% if user|is_promember %} - Time Metrics Plot + Time Metrics Plot {% else %} Time Metrics Plot* {% endif %} @@ -120,7 +120,7 @@
{% if user|is_promember %} - Power Histogram + Power Histogram {% else %} Power Histogram* {% endif %} @@ -147,7 +147,7 @@
{% if user|is_promember %} - Sensor Fusion + Sensor Fusion {% else %} Sensor Fusion* {% endif %} @@ -159,7 +159,7 @@
{% if user|is_promember %} - Split Workout + Split Workout {% else %} Split Workout* {% endif %} @@ -172,7 +172,7 @@
- Big Interactive Plot + Big Interactive Plot
See (and save) the big interactive plot @@ -180,7 +180,7 @@
If your workout has in-stroke metrics (like a stroke power curve or boat acceleration curve), you will find it here.
diff --git a/rowers/templates/advancedotw.html b/rowers/templates/advancedotw.html index 56d5a322..59bd5ccf 100644 --- a/rowers/templates/advancedotw.html +++ b/rowers/templates/advancedotw.html @@ -21,17 +21,17 @@ {% endif %} @@ -49,7 +49,7 @@{% if user|is_promember %} - Compare Workouts + Compare Workouts {% else %} Compare Workouts* {% endif %} @@ -70,7 +70,7 @@
- Flexible Interactive Plot + Flexible Interactive Plot
Flexible Interactive plot. Pick your own X and Y axis parameters. @@ -80,7 +80,7 @@
{% if user|is_promember %} - Edit Intervals + Edit Intervals {% else %} Edit Intervals* {% endif %} @@ -97,7 +97,7 @@
{% if user|is_promember %} - CrewNerd Summary + CrewNerd Summary {% else %} CrewNerd Summary* {% endif %} @@ -111,7 +111,7 @@
{% if user|is_promember %} - Stroke Profile (Empower) + Stroke Profile (Empower) {% else %} Stroke Profile (Empower)* {% endif %} @@ -124,7 +124,7 @@
{% if user|is_promember %} - OTW Power Plot + OTW Power Plot {% else %} OTW Power Plot* {% endif %} @@ -144,7 +144,7 @@
{% if user|is_promember %} - Geeky Stuff + Geeky Stuff {% else %} Geeky Stuff* {% endif %} @@ -159,7 +159,7 @@
{% if user|is_promember %} - Smooth out Pace Data + Smooth out Pace Data {% else %} Smooth out Pace Data* {% endif %} @@ -176,7 +176,7 @@
{% if user|is_promember %} - Raw Data + Raw Data {% else %} Reset Smoothing* {% endif %} @@ -203,7 +203,7 @@
{% if user|is_promember %} - Sensor Fusion + Sensor Fusion {% else %} Sensor Fusion* {% endif %} @@ -215,7 +215,7 @@
{% if user|is_promember %} - Split Workout + Split Workout {% else %} Split Workout* {% endif %} @@ -229,7 +229,7 @@
- Big Interactive Plot + Big Interactive Plot
See (and save) the big interactive plot @@ -237,7 +237,7 @@
If your workout has in-stroke metrics (like a stroke power curve or boat acceleration curve), you will find it here.
diff --git a/rowers/templates/biginteractive1.html b/rowers/templates/biginteractive1.html index 0d4cb513..99ab4f4c 100644 --- a/rowers/templates/biginteractive1.html +++ b/rowers/templates/biginteractive1.html @@ -42,12 +42,12 @@ {% if user.is_authenticated and mayedit %} diff --git a/rowers/templates/comparison_list.html b/rowers/templates/comparison_list.html index 2ad2d425..804fd6b9 100644 --- a/rowers/templates/comparison_list.html +++ b/rowers/templates/comparison_list.html @@ -80,7 +80,7 @@
{% if user|is_promember %} - Edit Wind Data + Edit Wind Data {% else %} Edit Wind Data {% endif %} @@ -71,7 +71,7 @@
{% if user|is_promember %} - Edit Stream Data + Edit Stream Data {% else %} Edit Stream Data {% endif %} @@ -84,7 +84,7 @@
{% if user|is_promember %} - OTW Power + OTW Power {% else %} OTW Power {% endif %} @@ -101,7 +101,7 @@
{% if user|is_promember %} - Corrected Pace Plot + Corrected Pace Plot {% else %} Corrected Pace Plot {% endif %} @@ -113,7 +113,7 @@
- Big Interactive Plot + Big Interactive Plot
See (and save) the big interactive plot @@ -128,7 +128,7 @@ {% else %}
- Set wind strength and direction + Set wind strength and direction
diff --git a/rowers/templates/panel_advancededit.html b/rowers/templates/panel_advancededit.html index 58f0182c..bc80f9e0 100644 --- a/rowers/templates/panel_advancededit.html +++ b/rowers/templates/panel_advancededit.html @@ -1,5 +1,5 @@ diff --git a/rowers/templates/panel_comments.html b/rowers/templates/panel_comments.html index 3250e4fd..09d0d0f0 100644 --- a/rowers/templates/panel_comments.html +++ b/rowers/templates/panel_comments.html @@ -14,12 +14,12 @@- Flex Chart + Flex Chart
-