rename SIEDLUNG
This commit is contained in:
+2
-2
@@ -1,10 +1,10 @@
|
|||||||
use anyhow::{anyhow, Result};
|
use anyhow::{anyhow, Result};
|
||||||
|
|
||||||
pub(crate) const SIEDLUNG: &str =
|
const URL_DEPARTURES: &str =
|
||||||
"https://www.vvo-online.de/de/fahrplan/aktuelle-abfahrten-ankuenfte/abfahrten?stopid=33006765";
|
"https://www.vvo-online.de/de/fahrplan/aktuelle-abfahrten-ankuenfte/abfahrten?stopid=33006765";
|
||||||
|
|
||||||
pub(crate) fn query_server() -> Result<String> {
|
pub(crate) fn query_server() -> Result<String> {
|
||||||
match ureq::get(SIEDLUNG).call() {
|
match ureq::get(URL_DEPARTURES).call() {
|
||||||
Ok(response) => Ok(response.into_string().map_err(|e| anyhow!(e))?),
|
Ok(response) => Ok(response.into_string().map_err(|e| anyhow!(e))?),
|
||||||
Err(e) => Err(anyhow!(e)),
|
Err(e) => Err(anyhow!(e)),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user