Add missing paramters to getGrades() method
This commit is contained in:
parent
d17eaa2190
commit
cc9615f5b1
3 changed files with 3 additions and 2 deletions
|
@ -387,7 +387,7 @@ class Scrapper {
|
|||
)
|
||||
}
|
||||
return when (isEduOne) {
|
||||
true -> studentPlus.getGrades(semester)
|
||||
true -> studentPlus.getGrades(semester, studentId, diaryId, unitId)
|
||||
else -> student.getGrades(semester)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ internal data class GradesSettings(
|
|||
)
|
||||
|
||||
@Serializable
|
||||
@OptIn(ExperimentalSerializationApi::class)
|
||||
internal data class GradeSubject(
|
||||
|
||||
@SerialName("WidocznyPrzedmiot")
|
||||
|
|
|
@ -144,7 +144,7 @@ internal class StudentPlusRepository(
|
|||
)
|
||||
}
|
||||
|
||||
suspend fun getGrades(semesterId: Int): Grades {
|
||||
suspend fun getGrades(semesterId: Int, studentId: Int, diaryId: Int, unitId: Int): Grades {
|
||||
val key = getEncodedKey(studentId, diaryId, unitId)
|
||||
val res = api.getGrades(key, semesterId)
|
||||
|
||||
|
|
Loading…
Reference in a new issue