stations are not so important to write station twice. once is enough!
This commit is contained in:
parent
64661a05e9
commit
6c36e534b9
@ -57,9 +57,9 @@ pub(crate) async fn station_pdf(stations: Vec<Station>) -> Vec<u8> {
|
||||
|
||||
for station in stations {
|
||||
if !station.crewless() {
|
||||
let name = station.name;
|
||||
let name = station.name.trim();
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user