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:25:58 -08:00
parent 74607b7e60
commit 9160d25293

View file

@ -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)