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