Refine
This commit is contained in:
2
main.py
2
main.py
@@ -244,8 +244,10 @@ async def fastapi_sync_with_server(network: str, operation: int) -> ChangeSet:
|
|||||||
@app.post("/batch/")
|
@app.post("/batch/")
|
||||||
async def fastapi_execute_batch_commands(network: str, req: Request)-> ChangeSet:
|
async def fastapi_execute_batch_commands(network: str, req: Request)-> ChangeSet:
|
||||||
jo_root = await req.json()
|
jo_root = await req.json()
|
||||||
|
print(jo_root)
|
||||||
cs: ChangeSet = ChangeSet()
|
cs: ChangeSet = ChangeSet()
|
||||||
cs.operations = jo_root['operations']
|
cs.operations = jo_root['operations']
|
||||||
|
print(cs)
|
||||||
rcs = execute_batch_commands(network, cs)
|
rcs = execute_batch_commands(network, cs)
|
||||||
print(rcs)
|
print(rcs)
|
||||||
return rcs
|
return rcs
|
||||||
|
|||||||
Reference in New Issue
Block a user