From 2bebb1266b892c1db3f5fb42238c0a1a7b8effd4 Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Wed, 26 Oct 2022 17:48:43 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E8=B5=84=E6=BA=90=E4=B8=8B=E8=BD=BD=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E6=97=B6=E7=9B=B4=E6=8E=A5=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/utils/tool.py | 2 +- LittlePaimon/web/pages/home_page.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/LittlePaimon/utils/tool.py b/LittlePaimon/utils/tool.py index ba3ed0c..246e158 100644 --- a/LittlePaimon/utils/tool.py +++ b/LittlePaimon/utils/tool.py @@ -97,7 +97,7 @@ async def check_resource(): save_path=file_path) await asyncio.sleep(0.5) except Exception as e: - logger.warning('资源检查', f'下载{resource.split("/")[-1]}出错: {e}') + logger.warning('资源检查', f'下载{resource["path"].split("/")[-1]}出错: {e}') if flag: logger.info('资源检查', '资源下载完成') else: diff --git a/LittlePaimon/web/pages/home_page.py b/LittlePaimon/web/pages/home_page.py index c2b71b1..9ca2fe9 100644 --- a/LittlePaimon/web/pages/home_page.py +++ b/LittlePaimon/web/pages/home_page.py @@ -27,6 +27,7 @@ operation_button = Flex(justify='center', items=[ ), ActionType.Ajax( label='重启', + className='m-l', api='/LittlePaimon/api/bot_restart', confirmText='该操作将会使Bot重启,在完成重启之前,该页面也将无法访问(也可能会弹出报错,可无视),请耐心等待重启', level=LevelEnum.danger