Same for RB

This commit is contained in:
Julian Metzler 2022-11-30 20:57:35 +01:00
parent 1be0fdef0c
commit ac5c2153df
1 changed files with 4 additions and 0 deletions

4
run.py
View File

@ -76,6 +76,10 @@ def update_display(display, dbi):
if train_type == "RE" and any([stop.get('isCancelled') for stop in train['route']]):
# If we have an RE train and any stop on the way is cancelled
display.info_1.set("RE hält nicht überall")
if train_type in ("BRB", "RB", "ALX", "WB") and any([stop.get('isCancelled') for stop in train['route']]):
# If we have an RB train and any stop on the way is cancelled
display.info_1.set("RB hält nicht überall")
is_arrival = any(filter(lambda arrival_station_name: filter_route(train['route'])[-1]['name'].startswith(arrival_station_name), ARRIVAL_STATIONS))