mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Revert comments?
This commit is contained in:
parent
a0362c75c7
commit
1eba828de2
1 changed files with 6 additions and 7 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue