transitous rewrite: next_stop improvements

This commit is contained in:
Kaaninchen
2026-08-17 12:49:35 +02:00
parent 27f8ef2cbc
commit 59af14e6ff
6 changed files with 39 additions and 747 deletions
+1 -2
View File
@@ -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")