From c0f887ff9d81ac0c30e25c05b9b8199ebf86ebc4 Mon Sep 17 00:00:00 2001 From: aoxuan Date: Sun, 18 May 2025 00:17:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor(notification):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=8A=A5=E5=91=8A=E6=A0=87=E9=A2=98=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=97=A5=E6=9C=9F=E5=89=8D?= =?UTF-8?q?=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/MAA.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/MAA.py b/app/models/MAA.py index f946a61..260d0ca 100644 --- a/app/models/MAA.py +++ b/app/models/MAA.py @@ -122,6 +122,7 @@ class MaaManager(QObject): def run(self): """主进程,运行MAA代理进程""" + current_date = datetime.now().strftime("%m-%d") curdate = Config.server_date().strftime("%Y-%m-%d") begin_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S") @@ -654,7 +655,6 @@ class MaaManager(QObject): if (run_book["Annihilation"] and run_book["Routine"]) else "代理任务未全部完成" ) - current_date = datetime.now().strftime("%m-%d") self.push_notification( "统计信息", f"{current_date} | 用户 {user[0]} 的自动代理统计报告", @@ -830,9 +830,9 @@ class MaaManager(QObject): # 保存运行日志 title = ( - f"{self.set["MaaSet"]["Name"]}的{self.mode[:4]}任务报告" + f"{current_date} | {self.set["MaaSet"]["Name"]}的{self.mode[:4]}任务报告" if self.set["MaaSet"]["Name"] != "" - else f"{self.mode[:4]}任务报告" + else f"{current_date} | {self.mode[:4]}任务报告" ) result = { "title": f"{self.mode[:4]}任务报告",