forked from paul/sinoptik
Make output messages more consistent
This commit is contained in:
parent
8d19dbb517
commit
79981314d3
|
@ -105,7 +105,7 @@ pub(crate) async fn get(lat: f64, lon: f64, metric: Metric) -> Option<Vec<Item>>
|
|||
.append_pair("lat", &format!("{:.02}", lat))
|
||||
.append_pair("lon", &format!("{:.02}", lon));
|
||||
|
||||
println!("▶️ Retrieving Buienradar data from {url}");
|
||||
println!("▶️ Retrieving Buienradar data from: {url}");
|
||||
let response = reqwest::get(url).await.ok()?;
|
||||
let output = match response.error_for_status() {
|
||||
Ok(res) => res.text().await.ok()?,
|
||||
|
|
|
@ -69,7 +69,7 @@ pub(crate) async fn get(lat: f64, lon: f64, metric: Metric) -> Option<Vec<Item>>
|
|||
.append_pair("latitude", &format!("{:.05}", lat))
|
||||
.append_pair("longitude", &format!("{:.05}", lon));
|
||||
|
||||
println!("▶️ Retrieving Luchtmeetnet data from {url}");
|
||||
println!("▶️ Retrieving Luchtmeetnet data from: {url}");
|
||||
let response = reqwest::get(url).await.ok()?;
|
||||
let root: Container = match response.error_for_status() {
|
||||
Ok(res) => res.json().await.ok()?,
|
||||
|
|
Loading…
Reference in New Issue