Skip to content

feat: add "year built" to vehicle labels#279

Open
nathan-weinberg wants to merge 1 commit intotransitmatters:mainfrom
nathan-weinberg:car-age
Open

feat: add "year built" to vehicle labels#279
nathan-weinberg wants to merge 1 commit intotransitmatters:mainfrom
nathan-weinberg:car-age

Conversation

@nathan-weinberg
Copy link
Member

Motivation

Closes #276

Changes

Adds new "Oldest car built in " to vehicle labels, based on

Works for Red, Orange, Green, Blue, and Mattapan

Testing Instructions

Run locally, unfortunately I can't get a screenshot

"year built" is determined by fetching the lowest-numbered
carriage in a set and finding what year it was built

Signed-off-by: Nathan Weinberg <nathansweinberg@gmail.com>
@nathan-weinberg nathan-weinberg requested review from a team, idreyn and mathcolo as code owners February 8, 2026 18:46
@github-actions github-actions bot added frontend Change to frontend code backend Change to backend code labels Feb 8, 2026
Comment on lines +175 to +176
holiday_train_cars = os.environ.get("HOLIDAY_TRAIN_CARS", "").split(",")
pride_train_cars = os.environ.get("PRIDE_TRAIN_CARS", "").split(",")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-commit seems to have done this, cc @rudiejd

Comment on lines +30 to +31
"1400-1551": "2018-25",
"1500-1651": "1969-70",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work? There's some overlap here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Change to backend code frontend Change to frontend code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show year that train car was built

2 participants