mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-09-17 16:52:47 +00:00
transitous rewrite: fix next_stop
This commit is contained in:
+6
-1
@@ -154,6 +154,11 @@ def get_next_station(stops: dict, train_from: str) -> dict | None:
|
||||
for name, info in stops.items():
|
||||
arrival_dt = info["arrival"]
|
||||
if arrival_dt >= now:
|
||||
return {
|
||||
"name": name,
|
||||
"arrival": arrival_dt
|
||||
}
|
||||
'''
|
||||
if name == train_from:
|
||||
return None
|
||||
else:
|
||||
@@ -161,7 +166,7 @@ def get_next_station(stops: dict, train_from: str) -> dict | None:
|
||||
"name": name,
|
||||
"arrival": arrival_dt
|
||||
}
|
||||
|
||||
'''
|
||||
return None
|
||||
|
||||
def format_via_list(stops: dict, via_and: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user