This commit is contained in:
DingZQ
2022-10-15 17:50:54 +08:00
parent fc6ff82bed
commit 419fa188bf

View File

@@ -101,8 +101,12 @@ async def fastapi_execute_batch_commands(network: str, req: Request)-> ChangeSet
jo_root = await req.json()
print(jo_root)
jo_operations = jo_root['operations']
print(jo_operations)
print(type(jo_operations))
cs: ChangeSet = ChangeSet({})
for jo in jo_operations:
print(jo)
print(type(jo))
cs.add(jo)
return execute_batch_commands(network, cs)