From 7d14a40cd685a9d0324c4f5432b3a0a037b6ac30 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Wed, 4 Jan 2023 18:04:11 +1100 Subject: [PATCH] Message is being sent as json(dict) --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 48950ff..8d0058c 100644 --- a/app.py +++ b/app.py @@ -38,7 +38,7 @@ def response_minify(response): def handle_message(data): current_time = datetime.now().replace( microsecond=0).isoformat() - print('' + current_time + ' ' + data) + print('' + current_time + ' ' + json.dumps(data)) @app.route("/api/status", methods=['GET', 'POST'])