From 0c94049e21c2570e3444c158a21842d57eb8f8cf Mon Sep 17 00:00:00 2001 From: moanos Date: Thu, 9 Jan 2025 06:59:09 +0100 Subject: [PATCH] fix: Fix bug for ANs that have not been checked for more that three months --- src/fellchensammlung/tools/misc.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/fellchensammlung/tools/misc.py b/src/fellchensammlung/tools/misc.py index 52524d4..4ab9312 100644 --- a/src/fellchensammlung/tools/misc.py +++ b/src/fellchensammlung/tools/misc.py @@ -46,20 +46,14 @@ def time_since_as_hr_string(age: datetime.timedelta) -> str: "years": years, } elif months >= 3: - _("vor %(month)d Monaten") % {"month": months} + text = _("vor %(month)d Monaten") % {"month": months} elif weeks >= 3: text = _("vor %(weeks)d Wochen") % {"weeks": weeks} else: if days == 0: text = _("Heute") else: - text = ngettext( - "vor einem Tag", - "vor %(count)d Tagen", - days, - ) % { - "count": days, - } + text = ngettext("vor einem Tag","vor %(count)d Tagen", days,) % {"count": days,} return text