fix
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user