EdupageAPI/edupage-api

[Bug] Non-number character in the classroom number

Closed this issue · 0 comments

Describe the bug
There could be a classroom which uses other characters than numbers as the classroom number.

Error message

edupage_api\edupage_api__init__.py", line 114, in get_timetable
    return Timetables(self).get_timetable(date)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\edupage_api\timetables.py", line 142, in get_timetable
    classroom_id = int(classroom_id_str)
ValueError: invalid literal for int() with base 10: '*24'

Version

  • Edupage API version: 0.10.2
  • Python version: 3.11