sync view fix
This commit is contained in:
parent
d34756d9fc
commit
7fbd62659d
@ -11,9 +11,9 @@ class SyncView(FlaskView):
|
|||||||
remote_uuid = request.json['uuid']
|
remote_uuid = request.json['uuid']
|
||||||
remote_ip = request.remote_addr
|
remote_ip = request.remote_addr
|
||||||
|
|
||||||
cust_key = f"customer_{remote_uuid}"
|
cust_key = f"consumer_{remote_uuid}"
|
||||||
|
|
||||||
last_known_info = json.loads((redis_client.get("cust_key") or b"{}").decode('utf-8'))
|
last_known_info = json.loads((redis_client.get(cust_key) or b"{}").decode('utf-8'))
|
||||||
|
|
||||||
if not last_known_info:
|
if not last_known_info:
|
||||||
current_app.logger.info(f"New consumer registered (unknown UUID): {remote_uuid} at {remote_ip}")
|
current_app.logger.info(f"New consumer registered (unknown UUID): {remote_uuid} at {remote_ip}")
|
||||||
|
Reference in New Issue
Block a user