This commit is contained in:
DingZQ
2023-10-20 23:44:23 +08:00
parent 734f394d25
commit a088165017

View File

@@ -149,6 +149,7 @@ async def fastapi_dump_inp(network: str, inp: str) -> bool:
# 必须用这个PlainTextResponse不然每个key都有引号
@app.get("/runproject/", response_class = PlainTextResponse)
async def fastapi_run_project(network: str) -> str:
global isSimulation
if isSimulation:
result = run_project(network)
isSimulation = False