Private
Public Access
1
0

bug fix otw power

This commit is contained in:
Sander Roosendaal
2019-04-29 16:02:15 +02:00
parent 30aaf6ed77
commit de3825e37c
6 changed files with 12 additions and 15 deletions

View File

@@ -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],