Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Berzan.js schedule not working #4

Open
vimml opened this issue Aug 16, 2024 · 2 comments
Open

Berzan.js schedule not working #4

vimml opened this issue Aug 16, 2024 · 2 comments

Comments

@vimml
Copy link

vimml commented Aug 16, 2024

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
Copy link
Owner

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
Copy link
Author

vimml commented Aug 16, 2024

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants