Closed Gladosator closed 2 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.
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).
Closing because of inactivity.
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