From 2a3c1af0430d0d9b973ebc7dc992483afb8b1c54 Mon Sep 17 00:00:00 2001 From: gaia Date: Sat, 1 Apr 2023 01:16:06 +0200 Subject: [PATCH] Make sure to flush json blocks --- webapp/netwo/netwo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/netwo/netwo.py b/webapp/netwo/netwo.py index cbd43c7..7a3d731 100644 --- a/webapp/netwo/netwo.py +++ b/webapp/netwo/netwo.py @@ -207,9 +207,11 @@ class Netwo: if timeout and time.time() > timeout: netwo_elig["timeoutReached"] = True yield json.dumps(netwo_elig, indent=2) + yield "\n" break else: yield json.dumps(netwo_elig, indent=2) + yield "\n" if netwo_elig["nbOperatorsPending"] > 0: time.sleep(1)