Same for RB
This commit is contained in:
parent
1be0fdef0c
commit
ac5c2153df
4
run.py
4
run.py
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue