Rewrite of the backend.
It works using a script, indexer, that runs every time fetch-ical.sh is ran, and generates a json index of what week every monday is in. The frontend then just has to find the last / next monday, and look it up in the map to get the current week.
Tested on all weeks until the start of next school year, since week events haven't been added for after the summer holidays (KECHG and KECHB)
Rewrite of the backend. It works using a script,
indexer
, that runs every timefetch-ical.sh
is ran, and generates a json index of what week every monday is in. The frontend then just has to find the last / next monday, and look it up in the map to get the current week. Tested on all weeks until the start of next school year, since week events haven't been added for after the summer holidays (KECHG and KECHB)