explanation on page
This commit is contained in:
@@ -69,7 +69,26 @@
|
||||
{% include "teambuttons.html" with teamid=team.id team=team %}
|
||||
</div>
|
||||
<div class="grid_12 alpha">
|
||||
<h3>Empower Workouts</h3>
|
||||
<h2>Empower Workouts</h2>
|
||||
<p>This functionality is aimed at users who have uploaded workouts from
|
||||
the Nielsen-Kellerman Empower Oarlock/SpeedCoach combination before the
|
||||
power inflation bug was known (May 4, 2018). </p>
|
||||
|
||||
<p>Workouts recorded with a SpeedCoach running NK Firmware version 2.17 or
|
||||
lower have Power and Work per Stroke values that are approximately
|
||||
9% (sculling) or 5% too high. The exact value of the error depends on your
|
||||
inboard and oar length.</p>
|
||||
|
||||
<p>Currently, we autocorrect workouts recorded with old Firmware upon
|
||||
their upload, but workouts that were present on the site before
|
||||
the bug was known still have incorrect values for Power and Work per Stroke.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
You can use this page to correct those workouts.
|
||||
</p>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="grid_12 alpha">
|
||||
<div class="grid_6 alpha">
|
||||
|
||||
@@ -266,21 +266,24 @@
|
||||
|
||||
<div class="grid_6 alpha">
|
||||
{% if rankingonly and not team %}
|
||||
<div class="grid_2 prefix_1 alpha">
|
||||
<div class="grid_2 alpha">
|
||||
<a class="button small green" href="/rowers/list-workouts">All Workouts</a>
|
||||
</div>
|
||||
{% elif not team %}
|
||||
<div class="grid_2 prefix_1 alpha">
|
||||
<div class="grid_2 alpha">
|
||||
<a class="button small green" href="/rowers/list-workouts/ranking">Ranking Pieces Only</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="grid_2 suffix_1 omega">
|
||||
<div class="grid_2">
|
||||
{% if user|is_promember %}
|
||||
<a class="button small gray" href="/rowers/workouts-join-select">Glue Workouts</a>
|
||||
{% else %}
|
||||
<a class="button blue small" href="/rowers/promembership">Glue</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="grid_2 omega">
|
||||
<a class="button small gray" href="/rowers/update_empower">Empower Repair</a>
|
||||
</div>
|
||||
<p> </p>
|
||||
{% if team %}
|
||||
<form id="searchform" action="/rowers/list-workouts/team/{{ team.id }}/{{ startdate|date:"Y-m-d" }}/{{ enddate|date:"Y-m-d" }}"
|
||||
|
||||
@@ -370,7 +370,7 @@ verbose_job_status = {
|
||||
'make_plot': 'Create static chart',
|
||||
'long_test_task': 'Long Test Task',
|
||||
'long_test_task2': 'Long Test Task 2',
|
||||
'update_empower': 'Correct Empower Inflacted Power Bug',
|
||||
'update_empower': 'Correct Empower Inflated Power Bug',
|
||||
}
|
||||
|
||||
def get_job_status(jobid):
|
||||
@@ -11856,6 +11856,9 @@ def rower_update_empower_view(
|
||||
workoutdicts = []
|
||||
|
||||
for w in workouts:
|
||||
if w.user != r:
|
||||
message = "You can only alter your own workouts"
|
||||
messages.error(request,message)
|
||||
if 'x' in w.boattype and w.oarlength is not None and w.oarlength > 3.30:
|
||||
message = "Oarlength and boat type mismatch for workout "+str(w.id)+". Skipping workout"
|
||||
messages.error(request,message)
|
||||
@@ -11884,6 +11887,7 @@ def rower_update_empower_view(
|
||||
|
||||
job = myqueue(queuelow,handle_update_empower,
|
||||
request.user.email,workoutdicts,
|
||||
debug=False,
|
||||
emailbounced=r.emailbounced)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user