From 65097796c183afe4fba67b3476ca7cc3cf18958f Mon Sep 17 00:00:00 2001 From: Max Hohlfeld Date: Mon, 7 Aug 2023 20:41:52 +0200 Subject: [PATCH] fix: adopt to latest layout changes --- src/remaining_place.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/remaining_place.rs b/src/remaining_place.rs index 5a41ba1..99a8624 100644 --- a/src/remaining_place.rs +++ b/src/remaining_place.rs @@ -47,8 +47,8 @@ pub fn get_current_places(url: &str) -> Result, 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 {