Add missing paramters to getGrades() method

This commit is contained in:
Mikołaj Pich 2024-03-19 17:36:34 +01:00
parent d17eaa2190
commit cc9615f5b1
No known key found for this signature in database
3 changed files with 3 additions and 2 deletions

View file

@ -387,7 +387,7 @@ class Scrapper {
)
}
return when (isEduOne) {
true -> studentPlus.getGrades(semester)
true -> studentPlus.getGrades(semester, studentId, diaryId, unitId)
else -> student.getGrades(semester)
}
}

View file

@ -46,6 +46,7 @@ internal data class GradesSettings(
)
@Serializable
@OptIn(ExperimentalSerializationApi::class)
internal data class GradeSubject(
@SerialName("WidocznyPrzedmiot")

View file

@ -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)