mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-09-17 16:52:47 +00:00
transitous rewrite: next_stop improvements
This commit is contained in:
+1
-2
@@ -34,8 +34,7 @@ def build_info_embed() -> discord.Embed:
|
||||
|
||||
stops = trip["stops"]
|
||||
|
||||
next_stop = get_next_station(trip["stops"])
|
||||
print(f"next_stop: {next_stop}")
|
||||
next_stop = get_next_station(trip["stops"], trip["from"])
|
||||
next_stop_station = None
|
||||
if next_stop:
|
||||
next_stop_station = next_stop.get("name")
|
||||
|
||||
Reference in New Issue
Block a user