Refine
This commit is contained in:
2
main.py
2
main.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user