diff --git a/endpoints.py b/endpoints.py index ecc887d..1a990fe 100644 --- a/endpoints.py +++ b/endpoints.py @@ -6,6 +6,7 @@ from flask_classful import FlaskView class IPEndpoint(FlaskView): def post(self): - currentconsumer = request.json['ip'] - redis_client.set('currentConsumer', currentconsumer) + consumer = redis_client.get('currentConsumer') + consumer['Host'] = request.json['ip'] + redis_client.set('currentConsumer', consumer) pass