Merge pull request #61 from tcmofashi/debug

fix: 彻底解决schedule
pull/62/head
SengokuCola 2025-03-06 00:45:47 +08:00 committed by GitHub
commit 3ef20ac1c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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