Refine
This commit is contained in:
2
main.py
2
main.py
@@ -24,6 +24,7 @@ inpDir = "C:/inpfiles/"
|
||||
tmpDir = "C:/tmpfiles/"
|
||||
|
||||
lockedPrjs = {}
|
||||
isSimulaion = False
|
||||
|
||||
if not os.path.exists(inpDir):
|
||||
os.mkdir(inpDir)
|
||||
@@ -144,7 +145,6 @@ async def fastapi_dump_inp(network: str, inp: str) -> bool:
|
||||
dump_inp(network, inp)
|
||||
return True
|
||||
|
||||
isSimulaion = False
|
||||
# 必须用这个PlainTextResponse,不然每个key都有引号
|
||||
@app.get("/runproject/", response_class = PlainTextResponse)
|
||||
async def fastapi_run_project(network: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user