Merge pull request #61 from tcmofashi/debug

fix: 彻底解决schedule
This commit is contained in:
SengokuCola
2025-03-06 00:45:47 +08:00
committed by GitHub

View File

@@ -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))