EdupageAPI / edupage-api

A python library for accessing your Edupage account
https://edupageapi.github.io/edupage-api/
GNU General Public License v3.0
67 stars 13 forks source link

[Feature request] #34

Closed Gladosator closed 2 years ago

Gladosator commented 3 years ago

Is your feature request related to a problem? Please describe. Yes. Since I wanted to hook it up to disco but I didn't want to show my grades.

Describe the solution you'd like I would like to be able to sort the notifications like I don't grades to show up on the list but I want homeworks to show up

ivanhrabcak commented 3 years ago

You can easily filter different notifications by type using the field EduNotification.event_type or EduNotification.event_type_name. You can see an example of filtering only homework notifications here:

homework_notifications = list(filter(lambda x: x.event_type == NotificationType.HOMEWORK, edupage.get_notifications()))

Note: EduNotification.event_type only supports MESSAGE, HOMEWORK, GRADE, SUBSTITUTION, TIMETABLE and EVENT notification types.

ivanhrabcak commented 3 years ago

Please close this issue if this is what you wanted to do, or further describe your future request (add example code, how you want it to work).

ivanhrabcak commented 2 years ago

Closing because of inactivity.