From 1ee225b44bf7913364faa4815df6af7af6f298ea Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Mon, 17 Jan 2022 08:54:00 +0100 Subject: [PATCH] adding commit --- rowers/polarstuff.py | 5 +++++ 1 file changed, 5 insertions(+) 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