Private
Public Access
1
0

removed some conditions CP

This commit is contained in:
Sander Roosendaal
2017-06-29 20:04:04 +02:00
parent 49a0670f79
commit 30bc734c0c
4 changed files with 12 additions and 5 deletions

View File

@@ -179,6 +179,7 @@ def handle_sendemailcsv(first_name,last_name,email,csvfile):
@app.task
def handle_otwsetpower(f1,boattype,weightvalue,
first_name,last_name,email,workoutid,ps=[1,1,1,1],
ratio=1.0,
debug=False):
try:
rowdata = rdata(f1)
@@ -221,7 +222,7 @@ def handle_otwsetpower(f1,boattype,weightvalue,
update_strokedata(workoutid,rowdata.df,debug=debug)
delta,cpvalues,avgpower = datautils.getsinglecp(rowdata.df)
if utils.isbreakthrough(delta,cpvalues,ps[0],ps[1],ps[2],ps[3]):
if utils.isbreakthrough(delta,cpvalues,ps[0],ps[1],ps[2],ps[3],ratio):
handle_sendemail_breakthrough(workoutid,email,
first_name,
last_name)