From d32a7a46d60e3b9af74325e8d31b8815a82b3492 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sat, 21 Oct 2023 00:03:45 +0800 Subject: [PATCH] Refine --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)