expanded boat types & classes
This commit is contained in:
@@ -68,7 +68,7 @@ queuelow = django_rq.get_queue('low')
|
||||
queuehigh = django_rq.get_queue('default')
|
||||
|
||||
from rowsandall_app.settings import SITE_URL
|
||||
|
||||
from rowers.types import otwtypes
|
||||
|
||||
user = settings.DATABASES['default']['USER']
|
||||
password = settings.DATABASES['default']['PASSWORD']
|
||||
@@ -2355,7 +2355,7 @@ def workout_rscore(w):
|
||||
normp = (pwr4mean)**(0.25)
|
||||
if not np.isnan(normp):
|
||||
ftp = float(r.ftp)
|
||||
if w.workouttype in ('water','coastal'):
|
||||
if w.workouttype in otwtypes:
|
||||
ftp = ftp*(100.-r.otwslack)/100.
|
||||
|
||||
intensityfactor = pwrmean/float(ftp)
|
||||
|
||||
Reference in New Issue
Block a user