diff --git a/rowers/polarstuff.py b/rowers/polarstuff.py index 79d46800..328ffa8f 100644 --- a/rowers/polarstuff.py +++ b/rowers/polarstuff.py @@ -397,7 +397,12 @@ def get_polar_workout(user,id,transactionid): if response.status_code == 200: result = response.text # commit transaction + url = baseurl+'/users/{userid}/exercise-transactions/{transactionid}'.format( + transactionid = transactionid, + userid = r.polaruserid + ) response = requests.put(url,headers=headers) + dologging('polarlog.log','Committing transaction on {url}'.format(url=url)) else: result = None