Fix seconds_to_hms bug!
Embarrassing. If M was zero then you got HH:SS.
This commit is contained in:
parent
74607b7e60
commit
9160d25293
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,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