transitous rewrite: only show next_stop if its actually stop and not the beginn of the route

This commit is contained in:
Kaaninchen
2026-08-18 14:27:47 +02:00
parent 729f350924
commit 3dcf1e8626
2 changed files with 2 additions and 9 deletions
+1 -3
View File
@@ -127,14 +127,12 @@ async def _update_next_loop(bot: discord.Bot, voice_channel: discord.VoiceChanne
if trip is None:
return
'''
now = datetime.now(LOCAL_TZ)
departure_dt = trip["departure_dt"]
if departure_dt > now:
wait_seconds = (departure_dt - now).total_seconds()
wait_seconds = (departure_dt - now).total_seconds() + 10
await asyncio.sleep(wait_seconds)
'''
while True:
next_stop = get_next_station(trip["stops"], trip["from"])