forked from Anri/cal8tor
use real semester int
This commit is contained in:
parent
b7d654b59d
commit
935ab42e61
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue