This commit is contained in:
DingZQ
2023-05-05 20:53:29 +08:00
parent 91fd53ed23
commit 24ce579a7f

View File

@@ -89,9 +89,9 @@ async def fastapi_export_inp(network: str) -> ChangeSet:
cs = export_inp(network)
op = cs.operations[0]
open_project(network)
op['vertex'] = str(get_all_vertices(network))
op['vertex'] = json.dumps(get_all_vertices(network))
print(op['vertex'])
op['scada'] = str(get_all_scada_elements(network))
op['scada'] = json.dumps(get_all_scada_elements(network))
close_project(network)
return cs