mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-09 19:50:26 -06:00
[Vulcan/Hebe] Restore sending date range when getting attendance.
This commit is contained in:
parent
0cf24c527b
commit
93e3d5994a
@ -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 ->
|
||||||
|
Loading…
Reference in New Issue
Block a user