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

fix: add orgname and orgid parameters to access original room of lesson #106

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

akaJuliaan
Copy link
Contributor

Sometimes the room of a specific lesson is changed which looks like this on the WebUntis website:

Screenshot from 2024-02-04 17-47-36

Screenshot from 2024-02-04 17-47-52

In this example the lesson is in the room "OG2-3" instead of "EG-2". The WebUntis API does add two parameters to the room object of the lesson so it looks like:

{
      id: 130,
      name: 'OG2-DV1',
      longname: 'DV-Raum 1',
      orgid: 72,
      orgname: 'EG-1'
}

This PR adds the orgid and the orgname parameter to the ShortData object, that it is easy to access the original room where the lesson normally would be.

@akaJuliaan akaJuliaan changed the title add orgname and orgid parameters Add orgname and orgid Parameters to access original Room of Lesson Feb 4, 2024
@TheNoim TheNoim changed the title Add orgname and orgid Parameters to access original Room of Lesson fix: add orgname and orgid parameters to access original room of lesson Feb 5, 2024
@TheNoim TheNoim merged commit 1fd9b07 into SchoolUtils:master Feb 5, 2024
1 of 3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants