From 0af0f5e79a6282b5e8b63dc5205d0bf60551f0cf Mon Sep 17 00:00:00 2001 From: Simon Nishi McCorkindale Date: Fri, 4 Jun 2021 00:42:07 +0800 Subject: [PATCH] Nicify JSON response of devices list --- quanttp/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quanttp/__main__.py b/quanttp/__main__.py index cbed469..961171b 100644 --- a/quanttp/__main__.py +++ b/quanttp/__main__.py @@ -152,7 +152,7 @@ def serve(servername, port, id): @app.route('/api/json/devices') def devicesjson(): devices = str(mf_wrapper.deviceIds(True)) - return Response(json.dumps(devices), content_type='application/json') + return Response('{"devices":'+devices+'}', content_type='application/json') @app.route('/api/json/randint32') def randjsonint32():