From 9fa761e1cd7b6fdcda64d0abe4c60963129ebb84 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sat, 21 Oct 2023 00:00:42 +0800 Subject: [PATCH] Refine --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index d4f1cc2..b0f9a34 100644 --- a/main.py +++ b/main.py @@ -149,6 +149,7 @@ async def fastapi_dump_inp(network: str, inp: str) -> bool: @app.get("/runproject/", response_class = PlainTextResponse) async def fastapi_run_project(network: str) -> str: if not app.state.is_simulation: + app.state.is_simulation = True result = run_project(network) app.state.is_simulation = False return result