fix: Fix bug for ANs that have not been checked for more that three months
This commit is contained in:
parent
29f1d2f0f2
commit
0c94049e21
@ -46,20 +46,14 @@ def time_since_as_hr_string(age: datetime.timedelta) -> str:
|
|||||||
"years": years,
|
"years": years,
|
||||||
}
|
}
|
||||||
elif months >= 3:
|
elif months >= 3:
|
||||||
_("vor %(month)d Monaten") % {"month": months}
|
text = _("vor %(month)d Monaten") % {"month": months}
|
||||||
elif weeks >= 3:
|
elif weeks >= 3:
|
||||||
text = _("vor %(weeks)d Wochen") % {"weeks": weeks}
|
text = _("vor %(weeks)d Wochen") % {"weeks": weeks}
|
||||||
else:
|
else:
|
||||||
if days == 0:
|
if days == 0:
|
||||||
text = _("Heute")
|
text = _("Heute")
|
||||||
else:
|
else:
|
||||||
text = ngettext(
|
text = ngettext("vor einem Tag","vor %(count)d Tagen", days,) % {"count": days,}
|
||||||
"vor einem Tag",
|
|
||||||
"vor %(count)d Tagen",
|
|
||||||
days,
|
|
||||||
) % {
|
|
||||||
"count": days,
|
|
||||||
}
|
|
||||||
return text
|
return text
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user