summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorstuebinm2024-09-09 15:47:47 +0200
committerstuebinm2024-09-09 15:47:47 +0200
commit0a3aad3a4e31049b36832827a5b3afff1334bff8 (patch)
treec8235aaae7a8ee564741161ab0d9fd1fb8b3c81c /src/main.rs
parentb6080abc5661f9323593944f5701d7dd7597afb9 (diff)
do not require ds100 codes in API responsesHEADmain
these are not present when other hafas backends than the DB one were used for the trip's checkin.
Diffstat (limited to '')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0a8fc54..7327785 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -188,7 +188,7 @@ async fn main() -> Result<(), ureq::Error> {
&format!("{}/api/v1/travel", cli.baseurl),
Action::CheckIn {
train: train.into(),
- to_station: status.to_station.map(|s| s.ds100),
+ to_station: status.to_station.map(|s| s.ds100).flatten(),
token: config.token_travel,
comment: None,
from_station: from