1
0
Fork 0
forked from Fuji/Fuji

Filter out invisible lessons in get_timetable method

This commit is contained in:
Maarceeli 2025-04-18 09:36:43 +02:00
parent 2542fa0ae0
commit af0885b2d2

View file

@ -218,10 +218,7 @@ class HebeClient:
"pupilId": student_id, "pupilId": student_id,
"dateFrom": from_, "dateFrom": from_,
"dateTo": to, "dateTo": to,
"lastId": "-2147483648",
"pageSize": 500,
"lastSyncDate": "1970-01-01%2001%3A00%3A00",
}, },
) )
return list(map(Lesson.from_hebe_dict, envelope)) return list(map(Lesson.from_hebe_dict, filter(lambda lessonRaw: lessonRaw["Visible"], envelope)))