This commit is contained in:
DingZQ
2023-10-21 00:03:45 +08:00
parent 9fa761e1cd
commit d32a7a46d6

View File

@@ -147,7 +147,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:
def fastapi_run_project(network: str) -> str:
if not app.state.is_simulation:
app.state.is_simulation = True
result = run_project(network)