From 3967ae3a6cb86fd589ba09c058e1741dde3771ea Mon Sep 17 00:00:00 2001 From: Stijn De Clercq Date: Fri, 23 Oct 2020 23:52:23 +0200 Subject: [PATCH] Comment online links & online groups because they are pointless right now --- functions/les.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/functions/les.py b/functions/les.py index 9afb75b..22fd8fd 100644 --- a/functions/les.py +++ b/functions/les.py @@ -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