mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Disable les
This commit is contained in:
parent
c1169b4496
commit
f655748025
4 changed files with 32 additions and 15 deletions
|
|
@ -23,8 +23,15 @@ def createEmbed(day, dayDatetime, semester, year, schedule):
|
|||
# Create a date object to check the current week
|
||||
startDate = 1612224000
|
||||
currentTime = dayDatetime.timestamp()
|
||||
|
||||
week = clamp(timeFormatters.timeIn(currentTime - startDate, "weeks")[0], 1, 13)
|
||||
|
||||
# Compensate for easter holidays
|
||||
# Sorry but I don't have time to make a clean solution for this rn
|
||||
# this will have to do
|
||||
if currentTime > 1617377400:
|
||||
week -= 2
|
||||
|
||||
title, week = getTitle(day, dayDatetime, week)
|
||||
|
||||
# Add all courses & their corresponding times + locations of today
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue