From 8c45e7d2be01f6de3e1aa75f1f824c63dfa5b9a0 Mon Sep 17 00:00:00 2001 From: tcmofashi Date: Thu, 6 Mar 2025 00:40:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=BB=E5=BA=95=E8=A7=A3=E5=86=B3sche?= =?UTF-8?q?dule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/schedule/schedule_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/schedule/schedule_generator.py b/src/plugins/schedule/schedule_generator.py index c9a1c8910..f2b11c33f 100644 --- a/src/plugins/schedule/schedule_generator.py +++ b/src/plugins/schedule/schedule_generator.py @@ -104,7 +104,7 @@ class ScheduleGenerator: min_diff = float('inf') # 检查今天的日程 - if not self.today_schedule.keys(): + if not self.today_schedule: return "摸鱼" for time_str in self.today_schedule.keys(): diff = abs(self._time_diff(current_time, time_str))