Batch
This commit is contained in:
4
main.py
4
main.py
@@ -101,8 +101,12 @@ async def fastapi_execute_batch_commands(network: str, req: Request)-> ChangeSet
|
|||||||
jo_root = await req.json()
|
jo_root = await req.json()
|
||||||
print(jo_root)
|
print(jo_root)
|
||||||
jo_operations = jo_root['operations']
|
jo_operations = jo_root['operations']
|
||||||
|
print(jo_operations)
|
||||||
|
print(type(jo_operations))
|
||||||
cs: ChangeSet = ChangeSet({})
|
cs: ChangeSet = ChangeSet({})
|
||||||
for jo in jo_operations:
|
for jo in jo_operations:
|
||||||
|
print(jo)
|
||||||
|
print(type(jo))
|
||||||
cs.add(jo)
|
cs.add(jo)
|
||||||
return execute_batch_commands(network, cs)
|
return execute_batch_commands(network, cs)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user