From 025d328d79870096068a034250e8220c9fff5e8c Mon Sep 17 00:00:00 2001 From: DLmaster Date: Tue, 10 Sep 2024 11:55:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=B4=A2=E5=BC=95=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AUTO_MAA.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AUTO_MAA.py b/AUTO_MAA.py index b28d5b8..13f9d32 100644 --- a/AUTO_MAA.py +++ b/AUTO_MAA.py @@ -147,10 +147,10 @@ class MaaRunner(QtCore.QThread): # 判断是否超时 if len(logs) > 0: LastTime = datetime.datetime.now() - for i in range(-1, 0 - len(logs) - 1, -1): + for index in range(-1, 0 - len(logs) - 1, -1): try: LastTime = datetime.datetime.strptime( - logs[i][1:20], "%Y-%m-%d %H:%M:%S" + logs[index][1:20], "%Y-%m-%d %H:%M:%S" ) break except ValueError: