Add netwo API #8
2 changed files with 3 additions and 3 deletions
|
@ -64,7 +64,6 @@ def getMap():
|
||||||
|
|
||||||
@app.route("/eligdata", methods=["GET"])
|
@app.route("/eligdata", methods=["GET"])
|
||||||
def getEligData():
|
def getEligData():
|
||||||
toto = 1
|
|
||||||
args = request.args
|
args = request.args
|
||||||
valid_args = True
|
valid_args = True
|
||||||
processed_args = {}
|
processed_args = {}
|
||||||
|
|
|
@ -183,14 +183,15 @@ class Netwo:
|
||||||
nbOperatorsOk=0,
|
nbOperatorsOk=0,
|
||||||
nbOperatorsErrors=0,
|
nbOperatorsErrors=0,
|
||||||
nbOperatorsPending=0,
|
nbOperatorsPending=0,
|
||||||
|
totalOperators=0,
|
||||||
eligStatus={},
|
eligStatus={},
|
||||||
timeoutReached=False,
|
timeoutReached=False,
|
||||||
timeoutSec=timeout_sec,
|
timeoutSec=timeout_sec,
|
||||||
eligOffers={},
|
eligOffers=[],
|
||||||
imb_info=imb_info,
|
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
|
netwo_elig["eligDone"] = True
|
||||||
yield "data: %s\n\n" % json.dumps(netwo_elig)
|
yield "data: %s\n\n" % json.dumps(netwo_elig)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue