Fix seconds_to_hms bug!

Embarrassing. If M was zero then you got HH:SS.
This commit is contained in:
voussoir 2020-01-06 20:21:41 -08:00
parent b7f745443b
commit 1b308d7921

View file

@ -433,7 +433,7 @@ def seconds_to_hms(seconds):
parts = []
if hours:
parts.append(hours)
if minutes:
if hours or minutes:
parts.append(minutes)
parts.append(seconds)
hms = ':'.join(f'{part:02d}' for part in parts)