From 749012140bc61532011320b8c759fe0907f503f6 Mon Sep 17 00:00:00 2001 From: redfast00 Date: Wed, 11 May 2022 18:33:34 +0200 Subject: [PATCH] Make deadline minutes integer instead of rounded float --- app/notification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/notification.py b/app/notification.py index fa97045..02a994e 100644 --- a/app/notification.py +++ b/app/notification.py @@ -64,5 +64,5 @@ def remaining_minutes(value) -> str: delta = value - datetime.now() if delta.total_seconds() < 0: return "0" - minutes = delta.total_seconds() // 60 + minutes = int(delta.total_seconds() // 60) return f"{minutes:02}"