[API/Usos] Add prefixes to classroom and building names.

This commit is contained in:
Kuba Szczodrzyński 2022-10-25 12:36:11 +02:00
parent 158b69a8d3
commit 845e09d875
No known key found for this signature in database
GPG Key ID: 70CB8A85BA1633CB

View File

@ -104,7 +104,7 @@ class UsosApiTimetable(
it.teacherId = lecturerIds?.firstOrNull() ?: -1L
it.teamId = unitId
val groupName = classTypeId?.plus(groupNumber)?.let { s -> "($s)" }
it.classroom = "$buildingId / $roomNumber ${groupName ?: ""}"
it.classroom = "Sala $roomNumber / bud. $buildingId ${groupName ?: ""}"
it.id = it.buildId()
it.color = when (classTypeId) {