fix typo
This commit is contained in:
parent
10d9904fd7
commit
6ecf7551a2
1 changed files with 4 additions and 2 deletions
|
@ -47,10 +47,12 @@ 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);
|
||||
|
||||
let mut vec = data.get(&i).unwrap().to_owned();
|
||||
let it = i + 1;
|
||||
|
||||
let mut vec = data.get(&it).unwrap().to_owned();
|
||||
vec.push((start_date, end_date));
|
||||
|
||||
data.insert(i + 1, vec);
|
||||
data.insert(it, vec);
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
|
Reference in a new issue