mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-06-18 08:12:44 +02:00
[API/Edudziennik] Add error reasons and add grade description.
This commit is contained in:
@ -11,7 +11,7 @@ import pl.szczodrzynski.edziennik.utils.Utils
|
||||
|
||||
class EdudziennikData(val data: DataEdudziennik, val onSuccess: () -> Unit) {
|
||||
companion object {
|
||||
private const val TAG = "TemplateData"
|
||||
private const val TAG = "EdudziennikData"
|
||||
}
|
||||
|
||||
init {
|
||||
|
@ -67,7 +67,7 @@ class EdudziennikWebGrades(override val data: DataEdudziennik,
|
||||
}
|
||||
|
||||
val info = gradesInfo[index]
|
||||
val category = info.child(4).text().trim()
|
||||
val description = info.child(4).text().trim()
|
||||
|
||||
val (teacherLastName, teacherFirstName) = info.child(1).text().split(' ')
|
||||
val teacher = data.getTeacher(teacherFirstName, teacherLastName)
|
||||
@ -88,9 +88,9 @@ class EdudziennikWebGrades(override val data: DataEdudziennik,
|
||||
val gradeObject = Grade(
|
||||
profileId,
|
||||
id,
|
||||
category,
|
||||
color,
|
||||
"",
|
||||
color,
|
||||
description,
|
||||
name,
|
||||
value,
|
||||
weight,
|
||||
|
Reference in New Issue
Block a user