From a088165017149903b928c07d41d36eacdd57ec32 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Fri, 20 Oct 2023 23:44:23 +0800 Subject: [PATCH] Refine --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index bcc21da..5e93c6f 100644 --- a/main.py +++ b/main.py @@ -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