[API/Librus] Revert getting time in teacher free days. (#124)

This commit is contained in:
B.O.S.S 2021-12-16 12:23:33 +01:00 committed by GitHub
parent aa06868a4e
commit 2ab0dd7546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,8 @@ class LibrusApiTeacherFreeDays(override val data: DataLibrus,
?: return@forEach ?: return@forEach
val dateFrom = Date.fromY_m_d(teacherAbsence.getString("DateFrom")) val dateFrom = Date.fromY_m_d(teacherAbsence.getString("DateFrom"))
val dateTo = Date.fromY_m_d(teacherAbsence.getString("DateTo")) val dateTo = Date.fromY_m_d(teacherAbsence.getString("DateTo"))
val timeFrom = teacherAbsence.getString("TimeFrom")?.let { Time.fromH_m_s(it) }
val timeTo = teacherAbsence.getString("TimeTo")?.let { Time.fromH_m_s(it) }
val teacherAbsenceObject = TeacherAbsence( val teacherAbsenceObject = TeacherAbsence(
profileId = profileId, profileId = profileId,
@ -46,8 +48,8 @@ class LibrusApiTeacherFreeDays(override val data: DataLibrus,
name = null, name = null,
dateFrom = dateFrom, dateFrom = dateFrom,
dateTo = dateTo, dateTo = dateTo,
timeFrom = null, timeFrom = timeFrom,
timeTo = null, timeTo = timeTo,
teacherId = teacherId teacherId = teacherId
) )