From e28613210186253e9728c9f6a7e12458c565089c Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Thu, 17 Sep 2026 20:26:12 -0700 Subject: [PATCH] Ruff fixes in progress --- src/ptulsconv/pdf/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ptulsconv/pdf/__init__.py b/src/ptulsconv/pdf/__init__.py index 115314e..49d6fa6 100644 --- a/src/ptulsconv/pdf/__init__.py +++ b/src/ptulsconv/pdf/__init__.py @@ -129,11 +129,11 @@ def time_format(mins, zero_str="-"): if mins == 0.0 and zero_str is not None: return zero_str elif mins < 60.0: - return "%im" % round(mins) + return f"{round(mins)}m" else: m = round(mins) hh, mm = divmod(m, 60) - return "%i:%02i" % (hh, mm) + return f"{hh}:{mm:02}" def draw_header_footer(