mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 10:54:36 -06:00
[API/Librus] Revert getting time in teacher free days. (#124)
This commit is contained in:
parent
aa06868a4e
commit
2ab0dd7546
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user