From d601d11e4b27a5f97e6774fff6a56aa37939546f Mon Sep 17 00:00:00 2001 From: JISAUAY Date: Fri, 3 Oct 2025 12:06:06 -0500 Subject: [PATCH] fixed CurrentPlace being bellow 1 --- app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.py b/app.py index 0c2e565..3ce44e3 100644 --- a/app.py +++ b/app.py @@ -896,6 +896,10 @@ class CurrentPlace(Static): def render(self) -> RenderResult: place_in_seconds = self.place // 1000 place_min, place_sec = divmod(place_in_seconds, 60) + + place_min = max(0, place_min) + place_sec = max(0, place_sec) + place_formatted = f"{place_min:02d}:{place_sec:02d}" return place_formatted