Refine
This commit is contained in:
1
main.py
1
main.py
@@ -149,6 +149,7 @@ async def fastapi_dump_inp(network: str, inp: str) -> bool:
|
|||||||
# 必须用这个PlainTextResponse,不然每个key都有引号
|
# 必须用这个PlainTextResponse,不然每个key都有引号
|
||||||
@app.get("/runproject/", response_class = PlainTextResponse)
|
@app.get("/runproject/", response_class = PlainTextResponse)
|
||||||
async def fastapi_run_project(network: str) -> str:
|
async def fastapi_run_project(network: str) -> str:
|
||||||
|
global isSimulation
|
||||||
if isSimulation:
|
if isSimulation:
|
||||||
result = run_project(network)
|
result = run_project(network)
|
||||||
isSimulation = False
|
isSimulation = False
|
||||||
|
|||||||
Reference in New Issue
Block a user