This commit is contained in:
DingZQ
2023-05-13 09:45:35 +08:00
parent 0ed1bb6af2
commit 3114a0a92e

View File

@@ -244,10 +244,8 @@ async def fastapi_sync_with_server(network: str, operation: int) -> ChangeSet:
@app.post("/batch/")
async def fastapi_execute_batch_commands(network: str, req: Request)-> ChangeSet:
jo_root = await req.json()
print(jo_root)
cs: ChangeSet = ChangeSet()
cs.operations = jo_root['operations']
print(cs)
rcs = execute_batch_commands(network, cs)
print(rcs)
return rcs