Skip to content
Snippets Groups Projects

Vylepšení výsledkové listiny

Merged Martin Mareš requested to merge mj/vysledky-p into devel
1 unresolved thread
1 file
+ 9
0
Compare changes
  • Side-by-side
  • Inline
+ 9
0
@@ -24,6 +24,15 @@ def inflect_by_number(n: int, w1: str, w234: str, wother: str, unitprefix: str =
return f'{unitprefix}{wother}'
def inflect_with_number(n: int, w1: str, w234: str, wother: str) -> str:
if n == 1:
return w1 % n
elif 2 <= n <= 4:
return w234 % n
else:
return wother % n
def timeformat(dt: datetime) -> str:
if dt is None:
return ''
Loading