From 35b08867f78b05828d904b38ff4ac7d2207118f4 Mon Sep 17 00:00:00 2001 From: shoucandanghehe Date: Thu, 10 Apr 2025 04:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E4=BD=BF=E7=94=A8=E6=96=B0?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_tetris_stats/utils/host.py | 4 ++-- nonebot_plugin_tetris_stats/utils/templates.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nonebot_plugin_tetris_stats/utils/host.py b/nonebot_plugin_tetris_stats/utils/host.py index f0cadce..288e403 100644 --- a/nonebot_plugin_tetris_stats/utils/host.py +++ b/nonebot_plugin_tetris_stats/utils/host.py @@ -52,8 +52,8 @@ class HostPage: @driver.on_startup def _(): app.mount( - '/host/assets', - StaticFiles(directory=TEMPLATES_DIR / 'assets'), + '/host/_nuxt', + StaticFiles(directory=TEMPLATES_DIR / '_nuxt'), name='assets', ) logger.success('assets mounted') diff --git a/nonebot_plugin_tetris_stats/utils/templates.py b/nonebot_plugin_tetris_stats/utils/templates.py index d169405..dc5d827 100644 --- a/nonebot_plugin_tetris_stats/utils/templates.py +++ b/nonebot_plugin_tetris_stats/utils/templates.py @@ -30,7 +30,7 @@ async def download_templates(tag: str) -> Path: tag = ( ( await client.get( - 'https://github.com/A-Minos/tetris-stats-templates/releases/latest', follow_redirects=True + 'https://github.com/A-Minos/tetris-stats-templates-new/releases/latest', follow_redirects=True ) ) .url.path.strip('/') @@ -43,7 +43,7 @@ async def download_templates(tag: str) -> Path: async with ( client.stream( 'GET', - f'https://github.com/A-Minos/tetris-stats-templates/releases/download/{tag}/dist.zip', + f'https://github.com/A-Minos/tetris-stats-templates-new/releases/download/{tag}/dist.zip', follow_redirects=True, ) as response, aopen(path, 'wb') as file, @@ -107,7 +107,7 @@ async def init_templates(tag: str) -> bool: async def check_tag(tag: str) -> bool: async with AsyncClient(proxy=config.tetris.proxy.github or config.tetris.proxy.main) as client: return ( - await client.get(f'https://github.com/A-Minos/tetris-stats-templates/releases/tag/{tag}') + await client.get(f'https://github.com/A-Minos/tetris-stats-templates-new/releases/tag/{tag}') ).status_code != HTTPStatus.NOT_FOUND