You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I cant use get_my_timetable() from your example.
In my case I think there comes only one element but in your code you use [1]...
Your code
importdatetimefromedupage_apiimportEdupageedupage=Edupage()
edupage.login_auto("bla@blubb", "pass")
# My timetabledate=datetime.date(2024, 11, 1)
timetable=edupage.get_my_timetable(date)
Error message
Traceback (most recent call last):
File "/home/rine/Projekte/homeassistantedupage/custom_components/homeassistantedupage/test/test.py", line 10, in <module>
timetable = edupage.get_my_timetable(date)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rine/Projekte/homeassistantedupage/.venv/lib/python3.12/site-packages/edupage_api/__init__.py", line 164, in get_my_timetable
return Timetables(self).get_my_timetable(date)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rine/Projekte/homeassistantedupage/.venv/lib/python3.12/site-packages/edupage_api/module.py", line 100, in __impl
return method(self, *method_args, **method_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rine/Projekte/homeassistantedupage/.venv/lib/python3.12/site-packages/edupage_api/timetables.py", line 282, in get_my_timetable
plan = self.__get_date_plan(date)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rine/Projekte/homeassistantedupage/.venv/lib/python3.12/site-packages/edupage_api/timetables.py", line 180, in __get_date_plan
curriculum_json = curriculum_response.text.split(response_start)[1].rsplit(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
Expected behavior
It should deliver the timetable for the selected date (2024/11/10)
Version
Edupage API version: 0.11.0
Python version: 3.12
The text was updated successfully, but these errors were encountered:
Describe the bug
I cant use get_my_timetable() from your example.
In my case I think there comes only one element but in your code you use [1]...
Your code
Error message
Expected behavior
It should deliver the timetable for the selected date (2024/11/10)
Version
The text was updated successfully, but these errors were encountered: