bug fix otw power
This commit is contained in:
@@ -1455,7 +1455,7 @@ def handle_otwsetpower(self,f1, boattype, weightvalue,
|
||||
except KeyError:
|
||||
pass
|
||||
df = getsmallrowdata_db(
|
||||
['power', 'workoutid', 'time'], ids=[encoder.decode_hex(workoutid)],
|
||||
['power', 'workoutid', 'time'], ids=[workoutid],
|
||||
debug=debug)
|
||||
thesecs = totaltime
|
||||
maxt = 1.05 * thesecs
|
||||
@@ -1468,7 +1468,7 @@ def handle_otwsetpower(self,f1, boattype, weightvalue,
|
||||
delta, cpvalues, ps[0], ps[1], ps[2], ps[3], ratio)
|
||||
if res:
|
||||
handle_sendemail_breakthrough(
|
||||
encoder.decode_hex(workoutid), email,
|
||||
workoutid, email,
|
||||
first_name,
|
||||
last_name, btvalues=btvalues.to_json())
|
||||
|
||||
@@ -1481,7 +1481,7 @@ def handle_otwsetpower(self,f1, boattype, weightvalue,
|
||||
d = {
|
||||
'first_name':first_name,
|
||||
'siteurl':siteurl,
|
||||
'workoutid':workoutid,
|
||||
'workoutid':encoder.encode_hex(workoutid),
|
||||
}
|
||||
|
||||
res = send_template_email(from_email,[fullemail],
|
||||
|
||||
Reference in New Issue
Block a user