f
This commit is contained in:
@@ -37,9 +37,6 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="grid_2">
|
<li class="grid_2">
|
||||||
<h1>Library</h1>
|
<h1>Library</h1>
|
||||||
<p>
|
|
||||||
Click on session name to clone to current period
|
|
||||||
</p>
|
|
||||||
<table class="listtable shortpadded" width="80%">
|
<table class="listtable shortpadded" width="80%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -55,11 +52,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{% if ps.name != '' %}
|
{% if ps.name != '' %}
|
||||||
<a class="small"
|
{{ ps.name }}
|
||||||
href="/rowers/sessions/{{ ps.id }}/clone/user/{{ rower.user.id }}/?when={{ timeperiod }}">{{ ps.name }}</a>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="small"
|
Unnamed Session
|
||||||
href="/rowers/sessions/{{ ps.id }}/clone/user/{{ rower.user.id }}/?when={{ timeperiod }}">Unnamed Session</a>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td> {{ ps.sessionvalue }} </td>
|
<td> {{ ps.sessionvalue }} </td>
|
||||||
|
|||||||
@@ -919,9 +919,18 @@ def step_to_string(step):
|
|||||||
ph = pacestringhigh,
|
ph = pacestringhigh,
|
||||||
)
|
)
|
||||||
elif targettype == 'Cadence':
|
elif targettype == 'Cadence':
|
||||||
|
try:
|
||||||
value = step['targetValue']
|
value = step['targetValue']
|
||||||
|
except KeyError:
|
||||||
|
value = 0
|
||||||
|
try:
|
||||||
valuelow = step['targetValueLow']
|
valuelow = step['targetValueLow']
|
||||||
|
except KeyError:
|
||||||
|
valuelow = 0
|
||||||
|
try:
|
||||||
valuehigh = step['targetValueHigh']
|
valuehigh = step['targetValueHigh']
|
||||||
|
except KeyError:
|
||||||
|
valuehigh = 0
|
||||||
|
|
||||||
if value != 0:
|
if value != 0:
|
||||||
target = 'Target: Cadence at {v} SPM'.format(v=value)
|
target = 'Target: Cadence at {v} SPM'.format(v=value)
|
||||||
|
|||||||
Reference in New Issue
Block a user