Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2022-01-21 16:30:36 +01:00
parent b0a9dccf7a
commit c495fd905d

View File

@@ -23,7 +23,6 @@ import os,sys
import gzip import gzip
import base64 import base64
import yaml import yaml
from uuid import uuid4 from uuid import uuid4
from requests import ConnectionError from requests import ConnectionError
from json.decoder import JSONDecodeError from json.decoder import JSONDecodeError
@@ -364,7 +363,7 @@ def register_user(user, token):
} }
params = { params = {
'member-id': uuid4().hex 'member-id': str(user.id)
} }
url = baseurl+'/users' url = baseurl+'/users'
@@ -377,6 +376,7 @@ def register_user(user, token):
dologging('polar.log',headers) dologging('polar.log',headers)
dologging('polar.log',params) dologging('polar.log',params)
dologging('polar.log',response.status_code) dologging('polar.log',response.status_code)
dologging('polar.log',reponse.body)
try: try:
dologging('polar.log',response.reason) dologging('polar.log',response.reason)
dologging('polar.log',response.text) dologging('polar.log',response.text)