luleyleo / untis-rs

Rust library to access the webuntis jsonrpc
MIT License
5 stars 6 forks source link

Fix error when personId is negative or personType is something else than ElementType #7

Closed Paddyk45 closed 10 months ago

Paddyk45 commented 1 year ago

Fixes #6

arnim279 commented 11 months ago

Just out of curiosity: which person id and type does Untis return? So far, the only negative id I've seen is -1, which is used as an "empty" id, but that doesn't seem to make sense in this case. Are you maybe using an anonymous login?