From 437072a84853929070681a229fa072d53cea4b4a Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Mon, 2 Jun 2025 21:51:28 +0200 Subject: [PATCH] Show nicer info --- buba/animations/dbf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buba/animations/dbf.py b/buba/animations/dbf.py index 59fe971..b516883 100644 --- a/buba/animations/dbf.py +++ b/buba/animations/dbf.py @@ -23,6 +23,9 @@ class DBFAnimation(BubaAnimation): self.count = count Thread(target=self.update, daemon=True).start() + def __repr__(self): + return f"<{type(self).__name__}, {self.ds100}>" + def fetch(self): dbi = DBInfoscreen("trains.xatlabs.com") trains = dbi.calc_real_times(dbi.get_trains(self.ds100)) # Station