Remove arrivals
This commit is contained in:
parent
4ec101f59b
commit
5e2f22758d
2
run.py
2
run.py
|
@ -41,6 +41,8 @@ def update_display(display, dbi):
|
|||
trains = list(filter(lambda t: t['platform'] in PLATFORMS_INCLUDE, trains))
|
||||
elif PLATFORMS_EXCLUDE:
|
||||
trains = list(filter(lambda t: t['platform'] not in PLATFORMS_EXCLUDE, trains))
|
||||
# Remove arrivals
|
||||
trains = list(filter(lambda t: not t['destination'].startswith(STATION_NAME), trains))
|
||||
except:
|
||||
traceback.print_exc()
|
||||
display.info_1.set(OUT_OF_ORDER_TEXT)
|
||||
|
|
Loading…
Reference in New Issue