feat(parser): add lesson types "course project" and "course project defense"

This commit is contained in:
2025-05-27 02:06:13 +04:00
parent 01bfa38969
commit d23092a32a
2 changed files with 9 additions and 4 deletions

View File

@@ -96,6 +96,8 @@ fn guess_lesson_type(text: &String) -> Option<LessonType> {
("зачет", LessonType::Exam), ("зачет", LessonType::Exam),
("зачет с оценкой", LessonType::ExamWithGrade), ("зачет с оценкой", LessonType::ExamWithGrade),
("экзамен", LessonType::ExamDefault), ("экзамен", LessonType::ExamDefault),
("курсовой проект", LessonType::CourseProject),
("защита курсового проекта", LessonType::CourseProjectDefense),
]) ])
}); });
@@ -174,10 +176,7 @@ fn parse_lesson(
{ {
let cabinets: Vec<String> = parse_cabinets( let cabinets: Vec<String> = parse_cabinets(
worksheet, worksheet,
( (cell_range.0.0, cell_range.1.0),
cell_range.0.0,
cell_range.1.0,
),
group_column + 1, group_column + 1,
); );

View File

@@ -88,6 +88,12 @@ pub enum LessonType {
/// Экзамен. /// Экзамен.
ExamDefault, ExamDefault,
/// Курсовой проект.
CourseProject,
/// Защита курсового проекта.
CourseProjectDefense,
} }
#[derive(Clone, Hash, Debug, Serialize, Deserialize, ToSchema)] #[derive(Clone, Hash, Debug, Serialize, Deserialize, ToSchema)]