cleane get_duration_str without zfill on first part
This commit is contained in:
parent
7111fedd5c
commit
241e76c17d
|
@ -186,6 +186,8 @@ def get_duration_str(seconds: int) -> str:
|
|||
unit_count, seconds = divmod(seconds, unit_seconds)
|
||||
duration_parts.append(f"{unit_count:02}{unit_label}")
|
||||
|
||||
duration_parts[0] = duration_parts[0].lstrip("0")
|
||||
|
||||
return " ".join(duration_parts)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue