mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-31 13:18:20 +01:00
Fix average calculation when there is no real semesters available (#2310)
This commit is contained in:
parent
58d5196ac9
commit
711de0f77f
@ -58,7 +58,7 @@ class GradeAverageProvider @Inject constructor(
|
|||||||
when (params.gradeAverageMode) {
|
when (params.gradeAverageMode) {
|
||||||
ONE_SEMESTER -> getGradeSubjects(
|
ONE_SEMESTER -> getGradeSubjects(
|
||||||
student = student,
|
student = student,
|
||||||
semester = semesters.single { it.semesterId == semesterId },
|
semester = semesters.first { it.semesterId == semesterId },
|
||||||
forceRefresh = forceRefresh,
|
forceRefresh = forceRefresh,
|
||||||
params = params,
|
params = params,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user