diff options
author | Lint Action <[email protected]> | 2022-09-18 07:33:48 +0000 |
---|---|---|
committer | Lint Action <[email protected]> | 2022-09-18 07:33:48 +0000 |
commit | 87bb8add6cbfa0797f8b3eba66c643a8045db154 (patch) | |
tree | 1e7f705ec2102b2435a42c3babd382ee5ab28b40 /ATRI/plugins/console | |
parent | 218610480bfeee7d48e2da404e89979bf60edbdf (diff) | |
download | ATRI-87bb8add6cbfa0797f8b3eba66c643a8045db154.tar.gz ATRI-87bb8add6cbfa0797f8b3eba66c643a8045db154.tar.bz2 ATRI-87bb8add6cbfa0797f8b3eba66c643a8045db154.zip |
:rotating_light: 自动进行代码格式化
Diffstat (limited to 'ATRI/plugins/console')
-rw-r--r-- | ATRI/plugins/console/data_source.py | 8 |
1 files changed, 5 insertions, 3 deletions
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("控制台初始化完成") |