Merge pull request #189 from ZeusWPI/fix-float-deadline
Make deadline minutes integer instead of rounded float
This commit is contained in:
commit
0a0d13c0dc
1 changed files with 1 additions and 1 deletions
|
@ -64,5 +64,5 @@ def remaining_minutes(value) -> str:
|
||||||
delta = value - datetime.now()
|
delta = value - datetime.now()
|
||||||
if delta.total_seconds() < 0:
|
if delta.total_seconds() < 0:
|
||||||
return "0"
|
return "0"
|
||||||
minutes = delta.total_seconds() // 60
|
minutes = int(delta.total_seconds() // 60)
|
||||||
return f"{minutes:02}"
|
return f"{minutes:02}"
|
||||||
|
|
Loading…
Reference in a new issue