Newbytee / berzan

Schedule and lunch viewer for Berzeliusskolan
https://berzan.js.org/
Mozilla Public License 2.0
3 stars 0 forks source link

Berzan.js schedule not working #4

Open vimml opened 3 weeks ago

vimml commented 3 weeks ago

When trying to view the schedules for a class an error message stating "TypeError: Cannot read properties of null (reading 'boxList')" pops up. No schedule is shown. This error is only shown on weeks there are lessons.

To reproduce:

  1. Go to schedule at berzan.js
  2. Enter any valid class ID and a week with lessons
Newbytee commented 3 weeks ago

Hi! Thanks for the issue. I'm aware that viewing the schedule broke at some point due to some change in Skola24's backend, but when I looked into it fixing the problem seemed non-trivial. Surely I could make it happen, but I haven't been a student at Berzan for a few years so I don't really have the context necessary to fix it readily available.

With that said, what I'd need to know is:

  1. What are some examples of valid class IDs now?
  2. What is the address to the website where you view your schedule now?

Not sure when I'll fix it (depends on how much they've changed), but I'll look at it.

vimml commented 3 weeks ago

Thanks for having done such great work on the website. Here's the answers to your questions.

  1. Class IDs follow the pattern of NAxxY_BER and TExxZ_BER. xx is the last two digits of the year that class started, with valid ones right now being 22, 23, 24. Y is a letter from A through E. Z is a letter from F through J. Some examples are NA22A_BER, NA23C_BER and TE24J_BER.
  2. The address of the website where I view my schedule right now is https://web.skola24.se/timetable/timetable-viewer/linkoping.skola24.se/Berzeliusskolan%20gymnasium/