diff --git a/rowers/tasks.py b/rowers/tasks.py index 388dc793..ff70925f 100644 --- a/rowers/tasks.py +++ b/rowers/tasks.py @@ -1032,7 +1032,7 @@ def handle_sendemail_breakthrough(workoutid, useremail, d = { 'first_name':userfirstname, 'siteurl':siteurl, - 'workoutid':encoder.encode_hex(int(workoutid)), + 'workoutid':encoder.encode_hex(workoutid), 'btvalues':tablevalues, } @@ -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( - workoutid, email, + encoder.decode_hex(workoutid), email, first_name, last_name, btvalues=btvalues.to_json())