Soup items were fetched from menu url

Signed-off-by: Vegard Berg <mail@myrkvi.com>
This commit is contained in:
hakon.lerring 2023-08-31 15:34:45 +02:00 committed by Vegard Berg
parent c296dd7731
commit 0141e9de76
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ pub(crate) fn get_cached_or_fetch_data(location: &str, now: DateTime<Utc>) -> an
items: ureq::get(&format!("{}?lokasjon={}&dato=", MENU_URL, location)).call()?
.into_string()?
.html_string_to_vec()?,
soup_items: ureq::get(&format!("{}?lokasjon={}&dato=",MENU_URL, location)).call()?
soup_items: ureq::get(&format!("{}?lokasjon={}&dato=",SOUP_URL, location)).call()?
.into_string()?
.html_string_to_vec()?,
};
@ -67,7 +67,7 @@ pub(crate) fn get_cached_or_fetch_data(location: &str, now: DateTime<Utc>) -> an
items: ureq::get(&format!("{}?lokasjon={}&dato=", MENU_URL, location)).call()?
.into_string()?
.html_string_to_vec()?,
soup_items: ureq::get(&format!("{}?lokasjon={}&dato=",MENU_URL, location)).call()?
soup_items: ureq::get(&format!("{}?lokasjon={}&dato=",SOUP_URL, location)).call()?
.into_string()?
.html_string_to_vec()?,
};