Skip to content

Commit

Permalink
add all sub plans to lbs, closes #139 (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sxyntheon authored Aug 23, 2024
2 parents aec3f7c + e72b6ac commit 310232e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion backend/src/api_wrapper/untis_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,9 @@ impl UntisClient {
//EF Vertiefungskurse
!formatted_lesson.subject.contains("VX") &&
//Q2 Zusatzkurse
!formatted_lesson.subject.contains('Z');
!formatted_lesson.subject.contains('Z') &&
//Swim lessons
!formatted_lesson.room.contains("Bad");
if formatted_lesson.length > 1 && !lesson.su.is_empty() {
skip.insert(lesson.su[0].id, formatted_lesson.length - 1);
}
Expand Down Expand Up @@ -487,6 +489,10 @@ impl UntisClient {
all_lbs.append(
&mut lessons[2].clone().into_iter().filter(|lesson| lesson.is_lb && lesson.subject_short != "S0" && lesson.subject_short != "N0" && lesson.subject_short != "OS").collect::<Vec<FormattedLesson>>(),
);
all_lbs.append(
&mut lessons[3].clone().into_iter().filter(|lesson| lesson.is_lb && lesson.subject_short != "S0" && lesson.subject_short != "N0" && lesson.subject_short != "OS").collect::<Vec<FormattedLesson>>(),
);


let mut additional_lbs: Vec<FormattedLesson> = vec![];

Expand Down

0 comments on commit 310232e

Please sign in to comment.