Skip to content
Snippets Groups Projects
Commit 7ac9bfea authored by Martin Mareš's avatar Martin Mareš
Browse files

util_format: Oprava překlepu

parent b36c20c3
No related branches found
No related tags found
1 merge request!9WIP: Zárodek uživatelské části webu a submitování
......@@ -68,7 +68,7 @@ def timedelta(d: datetime, ref: Optional[datetime] = None, descriptive: bool = F
if descriptive:
value = inflect_number(number, 'a', 'y', '', unitprefix=unitprefix)
else:
value = inflect_number(number, 'ou', 'ami', 'ami', unitprefix=unitprefix),
value = inflect_number(number, 'ou', 'ami', 'ami', unitprefix=unitprefix)
else:
# 1 minuta po, 3 minuty po, 5 minut po / za 1 minutu, za 3 minuty, za 5 minut
value = inflect_number(number, 'a' if descriptive else 'u', 'y', '', unitprefix=unitprefix)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment