Bug-Fixes bei Zugauswahl

This commit is contained in:
Kaaninchen
2026-07-20 12:11:52 +02:00
parent d25d1f6f60
commit 9f1ce60aa6
4 changed files with 16 additions and 10 deletions
+3 -3
View File
@@ -24,12 +24,12 @@ def format_iso_timestamp(isostr):
return discord.utils.format_dt(parsed_time, style="t")
def build_info_embed() -> discord.Embed | None:
if handlers.current is None:
return None
conn = handlers.current
info = handlers.train_info
if handlers.current is None and handlers.train_info is None:
return None
current_operator = resolve_operator(info["operators"])
arrival = format_iso_timestamp(info["arrival"])
departure = format_timestamp(conn['departure'])