mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-09-17 16:52:47 +00:00
Bug-Fixes bei Zugauswahl
This commit is contained in:
+3
-3
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user