Archived
1
0
Fork 0
forked from Anri/cal8tor
This commit is contained in:
Mylloon 2022-08-15 20:12:22 +02:00
parent 10d9904fd7
commit 6ecf7551a2
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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);
}
_ => (),
}