Filter out invisible lessons in get_timetable method
This commit is contained in:
parent
2542fa0ae0
commit
af0885b2d2
1 changed files with 1 additions and 4 deletions
|
@ -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)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue