fix: fix missing d

otherwise throws unsupported format character 'W' (0x57) at index 13
This commit is contained in:
moanos [he/him] 2025-01-04 09:50:32 +01:00
parent 568874e6dd
commit 5f742c60db

View File

@ -40,15 +40,15 @@ def time_since_as_hr_string(age: datetime.timedelta) -> str:
if years >= 1:
text = ngettext(
"vor einem Jahr",
"vor %(years) Tagen",
"vor %(years)d Tagen",
years,
) % {
"years": years,
}
elif months >= 3:
_("vor %(month) Monaten") % {"month": months}
_("vor %(month)d Monaten") % {"month": months}
elif weeks >= 3:
text = _("vor %(weeks) Wochen") % {"weeks": weeks}
text = _("vor %(weeks)d Wochen") % {"weeks": weeks}
else:
if days == 0:
text = _("Heute")