diff --git a/main.py b/main.py index b0f9a34..bed84cb 100644 --- a/main.py +++ b/main.py @@ -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)