Add version parameter for export inp
This commit is contained in:
4
main.py
4
main.py
@@ -110,8 +110,8 @@ async def fastapi_import_inp(network: str, req: Request):
|
||||
return ret
|
||||
|
||||
@app.get("/exportinp/")
|
||||
async def fastapi_export_inp(network: str) -> ChangeSet:
|
||||
cs = export_inp(network)
|
||||
async def fastapi_export_inp(network: str, version: str) -> ChangeSet:
|
||||
cs = export_inp(network, version)
|
||||
op = cs.operations[0]
|
||||
open_project(network)
|
||||
op['vertex'] = json.dumps(get_all_vertices(network))
|
||||
|
||||
Reference in New Issue
Block a user