[Vulcan/Hebe] Restore sending date range when getting attendance.

This commit is contained in:
Kuba Szczodrzyński 2021-02-22 23:20:32 +01:00
parent 0cf24c527b
commit 93e3d5994a

View File

@ -25,10 +25,16 @@ class VulcanHebeAttendance(
} }
init { init {
val semesterNumber = data.studentSemesterNumber
val startDate = profile?.getSemesterStart(semesterNumber)
val endDate = profile?.getSemesterEnd(semesterNumber)
apiGetList( apiGetList(
TAG, TAG,
VULCAN_HEBE_ENDPOINT_ATTENDANCE, VULCAN_HEBE_ENDPOINT_ATTENDANCE,
HebeFilterType.BY_PUPIL, HebeFilterType.BY_PUPIL,
dateFrom = startDate,
dateTo = endDate,
lastSync = lastSync lastSync = lastSync
) { list, _ -> ) { list, _ ->
list.forEach { attendance -> list.forEach { attendance ->