Actually update trains continuously
Some checks failed
docker-image / docker (push) Has been cancelled

This commit is contained in:
Stefan Bethke 2025-06-13 19:05:35 +02:00
commit 4310ea5b60

View file

@ -36,12 +36,13 @@ class DBFAnimation(BubaAnimation):
self.log.info(f"Fetched {len(trains)} trains")
def update(self):
try:
self.fetch()
except Exception as e:
self.log.warning(f"Unable to fetch {self.station}: {e}")
pass
sleep(60)
while True:
try:
self.fetch()
except Exception as e:
self.log.warning(f"Unable to fetch {self.station}: {e}")
pass
sleep(60)
@staticmethod
def countdown(dt: datetime):