Private
Public Access
1
0

getting it to work

This commit is contained in:
2025-02-03 21:30:47 +01:00
parent debb801a8e
commit f8a6c52f23
11 changed files with 194 additions and 32 deletions

View File

@@ -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)