From 87bb8add6cbfa0797f8b3eba66c643a8045db154 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Sun, 18 Sep 2022 07:33:48 +0000 Subject: =?UTF-8?q?:rotating=5Flight:=20=E8=87=AA=E5=8A=A8=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/console/data_source.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ATRI/plugins/console') diff --git a/ATRI/plugins/console/data_source.py b/ATRI/plugins/console/data_source.py index a0e5ef0..db0b6b1 100644 --- a/ATRI/plugins/console/data_source.py +++ b/ATRI/plugins/console/data_source.py @@ -69,7 +69,9 @@ class Console(Service): FRONTEND_DIR = CONSOLE_DIR / "frontend" FRONTEND_DIR.mkdir(parents=True, exist_ok=True) -CONSOLE_RESOURCE_URL = "https://jsd.imki.moe/gh/kyomotoi/Project-ATRI-Console@main/archive/dist.zip" +CONSOLE_RESOURCE_URL = ( + "https://jsd.imki.moe/gh/kyomotoi/Project-ATRI-Console@main/archive/dist.zip" +) async def init_resource(): @@ -84,8 +86,8 @@ async def init_resource(): file_path = CONSOLE_DIR / "dist.zip" with open(file_path, "wb") as w: w.write(resp.read()) - + with zipfile.ZipFile(file_path, "r") as zr: zr.extractall(FRONTEND_DIR) - + log.success("控制台初始化完成") -- cgit v1.2.3