From a477d17fe18a528f37b3961e3f9519d404f3fe45 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Wed, 4 Jan 2023 02:08:03 +1100 Subject: [PATCH] Attempt to fix JSON decoder error --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 6e908a8..590ef10 100644 --- a/app.py +++ b/app.py @@ -37,7 +37,7 @@ def response_minify(response): def handle_message(data): current_time = datetime.now().replace( microsecond=0).isoformat() - print(current_time + ' ' + data) + print(f'{current_time} {data}') @app.route("/api/status", methods=['GET', 'POST'])