Add netwo API #8

Merged
johan.le.baut merged 13 commits from netwo into master 2024-05-07 20:01:27 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 9bdf37e533 - Show all commits

View file

@ -64,7 +64,6 @@ def getMap():
@app.route("/eligdata", methods=["GET"])
def getEligData():
toto = 1
args = request.args
valid_args = True
processed_args = {}

View file

@ -183,14 +183,15 @@ class Netwo:
nbOperatorsOk=0,
nbOperatorsErrors=0,
nbOperatorsPending=0,
totalOperators=0,
eligStatus={},
timeoutReached=False,
timeoutSec=timeout_sec,
eligOffers={},
eligOffers=[],
imb_info=imb_info,
)
if imb_info.get("imb_status") != NETWO_DEPLOYED_STATUS:
if imb_info.get("imb_status") == NETWO_NOT_FOUND_STATUS:
netwo_elig["eligDone"] = True
yield "data: %s\n\n" % json.dumps(netwo_elig)
return