From 3e6c517fa9d4c4eea93254a80db06cc8022b82f5 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sat, 1 Mar 2025 23:18:52 +0100 Subject: [PATCH] Fixed labels --- git_time_tracker/format/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git_time_tracker/format/cli.py b/git_time_tracker/format/cli.py index 4604c27..c7d0313 100644 --- a/git_time_tracker/format/cli.py +++ b/git_time_tracker/format/cli.py @@ -32,7 +32,8 @@ def fmt_year_ranges(years: list[int]) -> str: def fmt_line(label: Label, total_time: datetime.timedelta) -> str: hours = int(total_time / HOUR) minutes = int((total_time - hours * HOUR) / MINUTE) - return f' {label.category:10} {label.label:40} {hours:-4d}h {minutes:-2d}m' + label_str = str(label.label) + return f' {label.category:20} {label_str:50} {hours:-4d}h {minutes:-2d}m' def generate_report(