mirror of https://github.com/stijndcl/didier
Comment online links & online groups because they are pointless right now
parent
68405963eb
commit
3967ae3a6c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue