From bb9471321df2a30dda26c1241552bcddea853397 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Fri, 20 Oct 2023 23:40:07 +0800 Subject: [PATCH] Refine --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index d6713f9..1de6ffc 100644 --- a/main.py +++ b/main.py @@ -24,7 +24,6 @@ inpDir = "C:/inpfiles/" tmpDir = "C:/tmpfiles/" lockedPrjs = {} -isSimulaion = False if not os.path.exists(inpDir): os.mkdir(inpDir) @@ -34,6 +33,8 @@ if not os.path.exists(tmpDir): app = FastAPI() +isSimulaion = False + app.add_middleware(GZipMiddleware, minimum_size=1000) ############################################################