stations are not so important to write station twice. once is enough!
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled
CI/CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
Philipp Hofer 2025-04-21 20:05:43 +02:00
parent 64661a05e9
commit 6c36e534b9

View File

@ -57,9 +57,9 @@ pub(crate) async fn station_pdf(stations: Vec<Station>) -> Vec<u8> {
for station in stations { for station in stations {
if !station.crewless() { if !station.crewless() {
let name = station.name; let name = station.name.trim();
let link = format!("{}/s/{}/{}", url(), station.id, station.pw); let link = format!("{}/s/{}/{}", url(), station.id, station.pw);
write!(content, "create_url_card(\"Station {name}\", \"{link}\"),").unwrap(); write!(content, "create_url_card(\"{name}\", \"{link}\"),").unwrap();
} }
} }