From 03a950c485d152760909a82aed1f1a7cd7af522f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sat, 7 Dec 2024 12:38:02 +0100 Subject: [PATCH] Force flush API message. --- src/holt59/aoc/__main__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/holt59/aoc/__main__.py b/src/holt59/aoc/__main__.py index cced3e6..c0bad6e 100644 --- a/src/holt59/aoc/__main__.py +++ b/src/holt59/aoc/__main__.py @@ -24,6 +24,7 @@ def dump_api_message( json.dumps( {"type": type, "time": datetime.now().isoformat(), "content": content} ), + flush=True, file=file, )