From 7fbd62659d3370fa74ddbf23d69474525777e06a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=BCleki=20F=C3=A1bi=C3=A1n?= Date: Fri, 8 May 2020 19:57:42 +0200 Subject: [PATCH] sync view fix --- consumer_api/views/sync_view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consumer_api/views/sync_view.py b/consumer_api/views/sync_view.py index 071da44..e0dc13a 100644 --- a/consumer_api/views/sync_view.py +++ b/consumer_api/views/sync_view.py @@ -11,9 +11,9 @@ class SyncView(FlaskView): remote_uuid = request.json['uuid'] 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: current_app.logger.info(f"New consumer registered (unknown UUID): {remote_uuid} at {remote_ip}")