mirror of https://github.com/snachodog/mybuddy.git
Account for duration days in timers.
This commit is contained in:
parent
c0b38f3790
commit
d659fc26e4
|
@ -49,5 +49,6 @@ def _get_hms(duration):
|
|||
if not isinstance(duration, timedelta):
|
||||
return 0, 0, 0
|
||||
h, remainder = divmod(duration.seconds, 3600)
|
||||
h += duration.days * 24
|
||||
m, s = divmod(remainder, 60)
|
||||
return h, m, s
|
||||
|
|
Loading…
Reference in New Issue