Fixed ip update endpoint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Scharnitzky Donát 2020-04-21 19:42:47 +02:00
parent a0fad2a9cd
commit 9c22b67627

View File

@ -6,6 +6,7 @@ from flask_classful import FlaskView
class IPEndpoint(FlaskView): class IPEndpoint(FlaskView):
def post(self): def post(self):
currentconsumer = request.json['ip'] consumer = redis_client.get('currentConsumer')
redis_client.set('currentConsumer', currentconsumer) consumer['Host'] = request.json['ip']
redis_client.set('currentConsumer', consumer)
pass pass