Make sure to flush json blocks

This commit is contained in:
gaia 2023-04-01 01:16:06 +02:00 committed by Samuel Thibault
parent 53f6f325b9
commit 2a3c1af043

View file

@ -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)