fix: adopt to latest layout changes

This commit is contained in:
Max Hohlfeld 2023-08-07 20:41:52 +02:00
parent 61e0fbe46c
commit 65097796c1

View File

@ -47,8 +47,8 @@ pub fn get_current_places(url: &str) -> Result<Vec<RemainingPlace>, reqwest::Err
}
}
lines.chunks(6).for_each(|chunk| {
let free = try_parse_free_slot(&chunk[4]);
lines.chunks(5).for_each(|chunk| {
let free = try_parse_free_slot(&chunk[3]);
let (id, description) = if let Some((id, description)) = chunk[0].split_once(' ') {
(id, description)
} else {