getting it to work
This commit is contained in:
@@ -1035,8 +1035,15 @@ def strokedatajson_v2(request, id):
|
||||
datadf = dataprep.dataplep(
|
||||
rowdata, id=row.id, bands=True, barchart=True, otwpower=True, empower=True)
|
||||
|
||||
if row.workouttype in mytypes.otwtypes:
|
||||
wps_avg = r.median_wps
|
||||
elif row.workouttype in mytypes.ergtypes:
|
||||
wps_avg = r.median_wps_erg
|
||||
else:
|
||||
wps_avg = 0
|
||||
|
||||
_ = myqueue(queuehigh, handle_calctrimp, row.id,
|
||||
row.csvfilename, r.ftp, r.sex, r.hrftp, r.max, r.rest)
|
||||
row.csvfilename, r.ftp, r.sex, r.hrftp, r.max, r.rest, wps_avg)
|
||||
|
||||
isbreakthrough, ishard = dataprep.checkbreakthrough(row, r)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user