refactor: decouple — blueprint'ы + CSS/HTML разделение (по шаблону app-autotest)

This commit is contained in:
2026-07-31 22:16:22 +04:00
parent 6a0d5d00a2
commit 944238d224
16 changed files with 803 additions and 464 deletions
+1 -7
View File
@@ -37,13 +37,7 @@ def _ue(s):
return s
def _pluralize(word):
"""Простейшая плюрализация: user→users, database→databases."""
if word.endswith("s"):
return word
if word.endswith("y") and word[-2] not in "aeiou":
return word[:-1] + "ies"
return word + "s"
from utils.pluralize import pluralize as _pluralize
# ---------------------------------------------------------------------------