From 1eba828de2027fd015f120a1a82c2d7c61a33b02 Mon Sep 17 00:00:00 2001 From: nex <53234499+EEKIM10@users.noreply.github.com> Date: Sun, 30 Oct 2022 16:10:54 +0000 Subject: [PATCH] Revert comments? --- cogs/timetable.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/cogs/timetable.py b/cogs/timetable.py index 17bf02b..91d0abb 100644 --- a/cogs/timetable.py +++ b/cogs/timetable.py @@ -121,8 +121,7 @@ class TimeTableCog(commands.Cog): date = date or datetime.now() _break = self.are_on_break(date) if _break: - # next_lesson = self.next_lesson(_break["end"] + timedelta(days=1, hours=7)) - next_lesson = None + next_lesson = self.next_lesson(_break["end"] + timedelta(days=1, hours=7)) next_lesson = next_lesson or { "name": "Unknown", "tutor": "Unknown", @@ -141,11 +140,11 @@ class TimeTableCog(commands.Cog): if not lesson: next_lesson = self.next_lesson(date) if not next_lesson: - # next_lesson = await asyncio.to_thread( - # self.absolute_next_lesson, - # new_method=True - # ) - next_lesson = { + next_lesson = await asyncio.to_thread( + self.absolute_next_lesson, + new_method=True + ) + next_lesson = next_lesson or { "name": "unknown", "tutor": "unknown", "room": "unknown",