This commit is contained in:
DingZQ
2023-10-20 23:53:43 +08:00
parent 5f23ea9fad
commit 769ab7d77c

View File

@@ -150,7 +150,7 @@ async def fastapi_dump_inp(network: str, inp: str) -> bool:
@app.get("/runproject/", response_class = PlainTextResponse)
async def fastapi_run_project(network: str) -> str:
global isSimulation
if isSimulation:
if not isSimulation:
result = run_project(network)
isSimulation = False
return result