From 01eb5bec71e1492004513b704f920ccdced55fb8 Mon Sep 17 00:00:00 2001 From: "Nyeki.py" <84998222+Nekidev@users.noreply.github.com> Date: Sat, 19 Oct 2024 21:25:35 -0300 Subject: [PATCH] fix(bot): :bug: Years being formatted as days. --- payphone/core/formatting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payphone/core/formatting.py b/payphone/core/formatting.py index 518ace1..5035c00 100644 --- a/payphone/core/formatting.py +++ b/payphone/core/formatting.py @@ -213,7 +213,7 @@ def time_to_text(time_diff: timedelta) -> str: parts = [] if years > 0: - parts.append(f"{years} day{"s" if years != 1 else ""}") + parts.append(f"{years} year{"s" if years != 1 else ""}") if days > 0: parts.append(f"{days} day{"s" if days != 1 else ""}") if hours > 0: