cleane get_duration_str without zfill on first part

This commit is contained in:
Simon 2024-05-21 21:08:24 +02:00
parent 7111fedd5c
commit 241e76c17d
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 2 additions and 0 deletions

View File

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