From 05d56e278d3498c1262615b9c0b3559861339ab7 Mon Sep 17 00:00:00 2001 From: moanos Date: Thu, 8 Aug 2024 17:01:54 +0200 Subject: [PATCH] fix: age formatting --- src/fellchensammlung/tools/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fellchensammlung/tools/misc.py b/src/fellchensammlung/tools/misc.py index d69e8b6..72331eb 100644 --- a/src/fellchensammlung/tools/misc.py +++ b/src/fellchensammlung/tools/misc.py @@ -15,7 +15,7 @@ def age_as_hr_string(age: datetime.timedelta) -> str: months = age.days/30 years = age.days/365 if years >= 1: - return f'{years:.0f} Jahr{pluralize(years)} und {months:.0} Monat{pluralize(months)}' + return f'{years:.0f} Jahr{pluralize(years)} und {months:.0f} Monat{pluralize(months)}' elif months >= 3: return f'{months:.0f} Monat{pluralize(months)}' elif weeks >= 3: