mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
ok we actually need to debug
This commit is contained in:
parent
4772239991
commit
4792b53e0d
1 changed files with 2 additions and 0 deletions
|
@ -103,6 +103,8 @@ class TimeTableCog(commands.Cog):
|
||||||
bool(self.are_on_break(next_available_date)))
|
bool(self.are_on_break(next_available_date)))
|
||||||
print("[absolute next lesson] Is timetabled date?", self.timetable.get(date.strftime("%A").lower()))
|
print("[absolute next lesson] Is timetabled date?", self.timetable.get(date.strftime("%A").lower()))
|
||||||
next_available_date += timedelta(days=1)
|
next_available_date += timedelta(days=1)
|
||||||
|
if next_available_date.year >= 2024:
|
||||||
|
raise RuntimeError("Failed to fetch absolute next lesson")
|
||||||
print("[absolute next lesson] next available date: ", next_available_date)
|
print("[absolute next lesson] next available date: ", next_available_date)
|
||||||
# NOTE: This could be *even* more efficient but honestly as long as it works it's fine
|
# NOTE: This could be *even* more efficient but honestly as long as it works it's fine
|
||||||
print("[absolute next lesson] fetching next lesson on", next_available_date)
|
print("[absolute next lesson] fetching next lesson on", next_available_date)
|
||||||
|
|
Loading…
Reference in a new issue