mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 09:47:50 +03:00
feat(parser): add lesson types "course project" and "course project defense"
This commit is contained in:
@@ -96,6 +96,8 @@ fn guess_lesson_type(text: &String) -> Option<LessonType> {
|
||||
("зачет", LessonType::Exam),
|
||||
("зачет с оценкой", LessonType::ExamWithGrade),
|
||||
("экзамен", LessonType::ExamDefault),
|
||||
("курсовой проект", LessonType::CourseProject),
|
||||
("защита курсового проекта", LessonType::CourseProjectDefense),
|
||||
])
|
||||
});
|
||||
|
||||
@@ -174,10 +176,7 @@ fn parse_lesson(
|
||||
{
|
||||
let cabinets: Vec<String> = parse_cabinets(
|
||||
worksheet,
|
||||
(
|
||||
cell_range.0.0,
|
||||
cell_range.1.0,
|
||||
),
|
||||
(cell_range.0.0, cell_range.1.0),
|
||||
group_column + 1,
|
||||
);
|
||||
|
||||
|
||||
@@ -88,6 +88,12 @@ pub enum LessonType {
|
||||
|
||||
/// Экзамен.
|
||||
ExamDefault,
|
||||
|
||||
/// Курсовой проект.
|
||||
CourseProject,
|
||||
|
||||
/// Защита курсового проекта.
|
||||
CourseProjectDefense,
|
||||
}
|
||||
|
||||
#[derive(Clone, Hash, Debug, Serialize, Deserialize, ToSchema)]
|
||||
|
||||
Reference in New Issue
Block a user