bug fix
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<li id="fitness-powerprogress">
|
||||
<a href="/rowers/fitnessprogress/">
|
||||
<a href="/rowers/fitness-progress/">
|
||||
<i class="far fa-watch-fitness fa-fw"></i> Power Progress
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<h1>Workout</h1>
|
||||
<ul class="cd-accordion-menu animated">
|
||||
<li class="has-children" id="workout">
|
||||
<input type="checkbox" name="group-workout" id="group-workout">
|
||||
<input type="checkbox" name="group-workout" id="group-workout" checked>
|
||||
<label for="group-workout">Workout</label>
|
||||
<ul>
|
||||
<li id="workout-dashboard">
|
||||
|
||||
@@ -4002,11 +4002,14 @@ def rankings_view2(request,theuser=0,
|
||||
velo = d/t
|
||||
p = 500./velo
|
||||
pwr = 2.8*(velo**3)
|
||||
a = {'distance':int(d),
|
||||
'duration':timedeltaconv(t),
|
||||
'pace':timedeltaconv(p),
|
||||
'power':int(pwr)}
|
||||
predictions.append(a)
|
||||
try:
|
||||
a = {'distance':int(d),
|
||||
'duration':timedeltaconv(t),
|
||||
'pace':timedeltaconv(p),
|
||||
'power':int(pwr)}
|
||||
predictions.append(a)
|
||||
except:
|
||||
pass
|
||||
|
||||
# CP model
|
||||
pwr = p1[0]/(1+t/p1[2])
|
||||
|
||||
Reference in New Issue
Block a user