Refine
This commit is contained in:
4
main.py
4
main.py
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user