Fix seconds_to_hms bug!
Embarrassing. If M was zero then you got HH:SS.
This commit is contained in:
parent
b7f745443b
commit
1b308d7921
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,7 @@ def seconds_to_hms(seconds):
|
||||||
parts = []
|
parts = []
|
||||||
if hours:
|
if hours:
|
||||||
parts.append(hours)
|
parts.append(hours)
|
||||||
if minutes:
|
if hours or minutes:
|
||||||
parts.append(minutes)
|
parts.append(minutes)
|
||||||
parts.append(seconds)
|
parts.append(seconds)
|
||||||
hms = ':'.join(f'{part:02d}' for part in parts)
|
hms = ':'.join(f'{part:02d}' for part in parts)
|
||||||
|
|
Loading…
Reference in a new issue