jsonify
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Füleki Fábián 2020-03-30 16:37:12 +02:00
parent 0c3161ef03
commit 3c8229238c

View File

@ -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()])