From 98e450cca454f6d64fbebc6c51630f7208b6df95 Mon Sep 17 00:00:00 2001 From: NianBroken Date: Thu, 23 Jan 2025 18:50:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E6=88=90=E7=BB=A9?= =?UTF-8?q?=E6=9C=AA=E6=9B=B4=E6=96=B0=E6=97=B6=E7=9A=84=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 89680b8..df03c23 100644 --- a/main.py +++ b/main.py @@ -247,9 +247,10 @@ else: # 输出响应内容 run_log += f"{response_text}" else: - last_submission_time = get_grade(student_client, output_type="last_submission_time") - run_log += "成绩未更新\n" - run_log += f"最近一次更新时间:{last_submission_time}" + run_log += "成绩未更新" + if "成绩为空" not in run_log: + last_submission_time = get_grade(student_client, output_type="last_submission_time") + run_log += f"\n最近一次更新时间:{last_submission_time}" # 更新info.txt if run_count == 2: