From c495fd905d09893a75b0b85015d1394d42c47f28 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 21 Jan 2022 16:30:36 +0100 Subject: [PATCH] fix --- rowers/polarstuff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rowers/polarstuff.py b/rowers/polarstuff.py index 5ee076f6..21335ec0 100644 --- a/rowers/polarstuff.py +++ b/rowers/polarstuff.py @@ -23,7 +23,6 @@ import os,sys import gzip import base64 import yaml - from uuid import uuid4 from requests import ConnectionError from json.decoder import JSONDecodeError @@ -364,7 +363,7 @@ def register_user(user, token): } params = { - 'member-id': uuid4().hex + 'member-id': str(user.id) } url = baseurl+'/users' @@ -377,6 +376,7 @@ def register_user(user, token): dologging('polar.log',headers) dologging('polar.log',params) dologging('polar.log',response.status_code) + dologging('polar.log',reponse.body) try: dologging('polar.log',response.reason) dologging('polar.log',response.text)