Refine export inp, add vertice and scada
This commit is contained in:
6
main.py
6
main.py
@@ -86,7 +86,11 @@ async def fastapi_import_inp(network: str, req: Request):
|
||||
|
||||
@app.get("/exportinp/")
|
||||
async def fastapi_export_inp(network: str) -> ChangeSet:
|
||||
return export_inp(network)
|
||||
cs = export_inp(network)
|
||||
op = cs.operations[0]
|
||||
op['vertices'] = str(get_all_vertices(network))
|
||||
op['scada'] = str(get_all_scada_elements(network))
|
||||
return cs
|
||||
|
||||
@app.post("/readinp/")
|
||||
async def fastapi_read_inp(network: str, inp: str) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user