This commit is contained in:
Mylloon 2024-01-01 11:21:59 +01:00
parent 83563529be
commit 220f46c5de
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ fn tdtp(timetable: &mut Timetable) {
// Keep only elements who have multiples TD/TP
td_or_tp.retain(|course| *counts.get(&get_entry(course.0)).unwrap() > 1);
let mut multiselected: Vec<String> = td_or_tp.iter().map(|el| get_selection(el)).collect();
let mut multiselected: Vec<String> = td_or_tp.iter().map(get_selection).collect();
multiselected.sort();
let defaults = vec![false; multiselected.len()];

View file

@ -154,7 +154,7 @@ pub fn build(timetable: models::Timetable, dates: D) -> Vec<models::Course> {
// Start date of the back-to-school week
let datetimes = dates.get(&timetable.1 .0).unwrap();
let before_break = datetimes.get(0).unwrap();
let before_break = datetimes.first().unwrap();
let mut date = before_break.0;
let mut rep = before_break.1;
// For each weeks