Экзамен отображается не как зачёт.

This commit is contained in:
2024-12-13 06:33:24 +04:00
parent ff6d5d4dac
commit f4d3759d47
6 changed files with 8 additions and 3 deletions

View File

@@ -18,4 +18,5 @@ enum class LessonType(val value: Int) {
INDEPENDENT_WORK(4),
EXAM(5),
EXAM_WITH_GRADE(6),
EXAM_DEFAULT(7)
}

View File

@@ -14,7 +14,7 @@ class ScheduleGet(
) : CachedRequest(
context,
Method.GET,
"v3/schedule/group",
"v4/schedule/group",
{ listener.onResponse(Json.decodeFromString(it)) },
errorListener
) {

View File

@@ -150,6 +150,7 @@ fun DayCard(
LessonType.INDEPENDENT_WORK -> customCardColors
LessonType.EXAM -> examCardColors
LessonType.EXAM_WITH_GRADE -> examCardColors
LessonType.EXAM_DEFAULT -> examCardColors
}
val mutableExpanded = remember { mutableStateOf(false) }

View File

@@ -194,6 +194,7 @@ private fun LessonViewRow(
LessonType.INDEPENDENT_WORK -> stringResource(R.string.lesson_type_independent_work)
LessonType.EXAM -> stringResource(R.string.lesson_type_exam)
LessonType.EXAM_WITH_GRADE -> stringResource(R.string.lesson_type_exam_with_grade)
LessonType.EXAM_DEFAULT -> stringResource(R.string.lesson_type_exam_default)
else -> throw Error("Unknown lesson type!")
},
fontWeight = FontWeight.Bold,

View File

@@ -84,4 +84,5 @@
<string name="lesson_type_independent_work">Самостоятельная работа</string>
<string name="lesson_type_exam">ЗАЧЁТ</string>
<string name="lesson_type_exam_with_grade">ЗАЧЁТ С ОЦЕНКОЙ</string>
<string name="lesson_type_exam_default">ЭКЗАМЕН</string>
</resources>

View File

@@ -82,6 +82,7 @@
<string name="failed_to_fetch_teacher_names">Failed to fetch teacher names!</string>
<string name="lesson_type_consultation">Consultation</string>
<string name="lesson_type_independent_work">Independent work</string>
<string name="lesson_type_exam">EXAM</string>
<string name="lesson_type_exam_with_grade">EXAM WITH GRADE</string>
<string name="lesson_type_exam">EXAM*</string>
<string name="lesson_type_exam_with_grade">EXAM* WITH GRADE</string>
<string name="lesson_type_exam_default">EXAM</string>
</resources>