finally fixed line numbers, improved rendering of station monitor
This commit is contained in:
parent
45e177125c
commit
dfb2e2716d
2 changed files with 15 additions and 15 deletions
|
|
@ -90,13 +90,13 @@ def run_station_monitor(hafas: backend.HafasClient | None = None):
|
|||
arrivals = hafas.getArrDep(station_id, arrdep="ARR", count=5)
|
||||
arrivalBuffer.text = (
|
||||
f"Ankünfte für {station_name}:\n"
|
||||
+ "\n".join(f" {arrival["departure_time"]} {arrival["line"]} --> {arrival["name"]}" for arrival in arrivals)
|
||||
+ "\n".join(f" {arrival["departure_time_real"]} {arrival["line"]} <-- {arrival["name"]}" for arrival in arrivals)
|
||||
)
|
||||
|
||||
departures = hafas.getArrDep(station_id, arrdep="DEP", count=5)
|
||||
departureBuffer.text = (
|
||||
f"Abfahrten für {station_name}:\n"
|
||||
+ "\n".join(f" {departure["departure_time"]} {departure["line"]} --> {departure["name"]}" for departure in departures)
|
||||
+ "\n".join(f" {departure["departure_time_real"]} {departure["line"]} --> {departure["name"]}" for departure in departures)
|
||||
)
|
||||
|
||||
userinputBuffer.text = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue