Comment online links & online groups because they are pointless right now

pull/4/head
Stijn De Clercq 2020-10-23 23:52:23 +02:00
parent 68405963eb
commit 3967ae3a6c
1 changed files with 6 additions and 5 deletions

View File

@ -37,7 +37,8 @@ def createEmbed(day, dayDatetime, semester, year, schedule):
embed.add_field(name="Geen Les", value="Geen Les", inline=False)
else:
courseString = createCourseString(courses)
courseString += "\nGroep {} heeft vandaag online les.".format(1 if week % 2 == 0 else 2)
# TODO uncomment this when covid rules slow down
# courseString += "\nGroep {} heeft vandaag online les.".format(1 if week % 2 == 0 else 2)
embed.description = courseString
if prev:
@ -48,10 +49,10 @@ def createEmbed(day, dayDatetime, semester, year, schedule):
# TODO uncomment this when covid rules slow down
# Add online links - temporarily removed because everything is online right now
if online:
uniqueLinks: dict = getUniqueLinks(online)
embed.add_field(name="Online Links", value="\n".join(
sorted(getLinks(onlineClass, links) for onlineClass, links in uniqueLinks.items())))
# if online:
# uniqueLinks: dict = getUniqueLinks(online)
# embed.add_field(name="Online Links", value="\n".join(
# sorted(getLinks(onlineClass, links) for onlineClass, links in uniqueLinks.items())))
embed.set_footer(text="Semester {} | Lesweek {}".format(semester, round(week)))
return embed