This commit is contained in:
parent
0c3161ef03
commit
3c8229238c
@ -8,4 +8,4 @@ class ConsumersView(FlaskView):
|
|||||||
|
|
||||||
def get(self):
|
def get(self):
|
||||||
consumer_list = json.loads((redis_client.get("consumer_list") or b"{}").decode('utf-8'))
|
consumer_list = json.loads((redis_client.get("consumer_list") or b"{}").decode('utf-8'))
|
||||||
return [v['ip'] for k, v in consumer_list.items()]
|
return jsonify([v['ip'] for k, v in consumer_list.items()])
|
||||||
|
Reference in New Issue
Block a user