Refine import inp
This commit is contained in:
8
main.py
8
main.py
@@ -77,9 +77,11 @@ async def fastapi_copy_project(source: str, target: str):
|
||||
@app.post("/importinp/")
|
||||
async def fastapi_import_inp(network: str, req: Request):
|
||||
jo_root = await req.json()
|
||||
cs: ChangeSet = ChangeSet()
|
||||
cs.operations = jo_root['inp']
|
||||
return import_inp(network, cs)
|
||||
inp_text = jo_root['inp']
|
||||
ps = {
|
||||
"inp" : inp_text
|
||||
}
|
||||
return import_inp(network, ChangeSet(ps))
|
||||
|
||||
@app.get("/exportinp/")
|
||||
async def fastapi_export_inp(network: str):
|
||||
|
||||
Reference in New Issue
Block a user