Less than 60 seconds is "now"
This commit is contained in:
parent
70334603cb
commit
58f5f5cd4b
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue