Fixed ip update endpoint
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a0fad2a9cd
commit
9c22b67627
@ -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
|
||||||
|
Reference in New Issue
Block a user