Make deadline minutes integer instead of rounded float

This commit is contained in:
redfast00 2022-05-11 18:33:34 +02:00
parent b5202a9de6
commit 749012140b
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C

View file

@ -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}"