[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
val dateFrom = Date.fromY_m_d(teacherAbsence.getString("DateFrom"))
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(
profileId = profileId,
@ -46,8 +48,8 @@ class LibrusApiTeacherFreeDays(override val data: DataLibrus,
name = null,
dateFrom = dateFrom,
dateTo = dateTo,
timeFrom = null,
timeTo = null,
timeFrom = timeFrom,
timeTo = timeTo,
teacherId = teacherId
)