diff options
author | stuebinm | 2024-09-09 15:47:47 +0200 |
---|---|---|
committer | stuebinm | 2024-09-09 15:47:47 +0200 |
commit | 0a3aad3a4e31049b36832827a5b3afff1334bff8 (patch) | |
tree | c8235aaae7a8ee564741161ab0d9fd1fb8b3c81c /src/main.rs | |
parent | b6080abc5661f9323593944f5701d7dd7597afb9 (diff) |
do not require ds100 codes in API responses
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.rs | 2 |
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 |