Add netwo API #8

Merged
johan.le.baut merged 13 commits from netwo into master 2024-05-07 20:01:27 +02:00
Showing only changes of commit 8e1cae68ba - Show all commits

View file

@ -207,9 +207,11 @@ class Netwo:
if timeout and time.time() > timeout: if timeout and time.time() > timeout:
netwo_elig["timeoutReached"] = True netwo_elig["timeoutReached"] = True
yield json.dumps(netwo_elig, indent=2) yield json.dumps(netwo_elig, indent=2)
yield "\n"
break break
else: else:
yield json.dumps(netwo_elig, indent=2) yield json.dumps(netwo_elig, indent=2)
yield "\n"
if netwo_elig["nbOperatorsPending"] > 0: if netwo_elig["nbOperatorsPending"] > 0:
time.sleep(1) time.sleep(1)