From 58f5f5cd4bf23a8975f4fc5eb8d93633612a4064 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Sat, 7 Jun 2025 17:08:51 +0200 Subject: [PATCH] Less than 60 seconds is "now" --- buba/bubaanimator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buba/bubaanimator.py b/buba/bubaanimator.py index 8265159..b34bef1 100644 --- a/buba/bubaanimator.py +++ b/buba/bubaanimator.py @@ -41,7 +41,7 @@ class BubaAnimation: from_day_start = now.replace(hour=4, minute=0, second=0, microsecond=0) now_delta = dt - now day_delta = dt - from_day_start - if now_delta < timedelta(seconds=0): + if now_delta < timedelta(seconds=60): return "now" if now_delta < timedelta(minutes=30): return f"{int(now_delta.seconds / 60)}m"