From 9d321cd78b6ef477a1ed2dc5e99086409f1740a6 Mon Sep 17 00:00:00 2001 From: SlyAimer <2289782085@qq.com> Date: Tue, 4 Mar 2025 09:55:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(data=5Fsource):=20=E4=BF=AE=E5=A4=8D=20?= =?UTF-8?q?=E6=97=A5=E6=8A=A5=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/clover_report/data_source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clover_report/data_source.py b/src/clover_report/data_source.py index 46ab3af..4033974 100644 --- a/src/clover_report/data_source.py +++ b/src/clover_report/data_source.py @@ -68,7 +68,7 @@ async def save_img(data: bytes): :param data: :return: """ - file_path = temp_path + f"{datetime.now().date()}.png" + file_path = temp_path + f"{datetime.now().date()}日报.png" with open(file_path, "wb") as file: file.write(data) @@ -98,7 +98,7 @@ class Report: async def get_report_image(cls) -> bytes: """获取数据""" now = datetime.now() - file = Path() / temp_path / f"{now.date()}.png" + file = Path() / temp_path / f"{now.date()}日报.png" if os.path.exists(file): with file.open("rb") as image_file: return image_file.read()