From d67a0ae76ffad310de816c8df8e283803f2cfc60 Mon Sep 17 00:00:00 2001 From: Ronald Date: Sun, 8 Dec 2024 00:36:12 +0000 Subject: [PATCH] Bug fix. Ensure that string returned by time_since contains integers not floats --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index defaa36..75ef881 100644 --- a/main.py +++ b/main.py @@ -143,7 +143,7 @@ def time_since(dt: datetime) -> str: total_seconds = difference.total_seconds() - minutes = total_seconds // 60 + minutes = int(total_seconds // 60) seconds = int(total_seconds % 60) if minutes > 0: