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)