use real semester int

This commit is contained in:
Mylloon 2022-08-15 20:09:16 +02:00
parent b7d654b59d
commit 935ab42e61
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -35,7 +35,7 @@ pub async fn info() -> HashMap<usize, Vec<(DateTime<Utc>, DateTime<Utc>)>> {
// -1 car la première semaine est déjà compté
let end_date = start_date + Duration::weeks(rep - 1);
data.insert(i, vec![(start_date, end_date)]);
data.insert(i + 1, vec![(start_date, end_date)]);
}
e if e.starts_with("Reprise") => {
let captures = re.captures(&e).unwrap();
@ -50,7 +50,7 @@ pub async fn info() -> HashMap<usize, Vec<(DateTime<Utc>, DateTime<Utc>)>> {
let mut vec = data.get(&i).unwrap().to_owned();
vec.push((start_date, end_date));
data.insert(i, vec);
data.insert(i + 1, vec);
}
_ => (),
}