mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-18 21:26:48 -06: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) {
|
||||
ONE_SEMESTER -> getGradeSubjects(
|
||||
student = student,
|
||||
semester = semesters.single { it.semesterId == semesterId },
|
||||
semester = semesters.first { it.semesterId == semesterId },
|
||||
forceRefresh = forceRefresh,
|
||||
params = params,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user