Merge pull request #189 from ZeusWPI/fix-float-deadline

Make deadline minutes integer instead of rounded float
This commit is contained in:
redfast00 2022-05-24 20:42:24 +02:00 committed by GitHub
commit 0a0d13c0dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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