This commit is contained in:
DingZQ
2024-12-28 17:13:42 +08:00
parent cad6eeba47
commit 65b5c249a7

View File

@@ -1822,8 +1822,10 @@ async def download_inp(name: str, response: Response):
# DingZQ, 2024-12-28, convert v3 to v2
@app.get("/convertv3tov2/",response_model=None)
async def fastapi_convert_v3_to_v2(inp: str) -> ChangeSet:
async def fastapi_convert_v3_to_v2(req: Request) -> ChangeSet:
network = 'v3Tov2'
jo_root = await req.json()
inp = jo_root['inp']
cs = convert_inp_v3_to_v2(inp)
op = cs.operations[0]