feat: отчёт по тегам в Отчётах, версия 1.1.9

This commit is contained in:
justl
2026-09-18 16:57:11 +03:00
parent 848ff21665
commit 075906ffc6
23 changed files with 1325 additions and 194 deletions

View File

@@ -60,7 +60,7 @@ class CategoryRollupItem:
children: list[CategoryRollupChildItem] = field(default_factory=list)
async def _raw_category_contributions(
async def raw_category_contributions(
session: AsyncSession,
*,
transaction_type: TransactionType,
@@ -103,7 +103,7 @@ async def rollup_spending_by_top_level_category(
"""Every top-level category's total for the period, sorted by amount
desc (category sort_order as tiebreak — same order the SQL-only version
used to produce)."""
contributions = await _raw_category_contributions(
contributions = await raw_category_contributions(
session, transaction_type=transaction_type, start_date=start_date, end_date=end_date
)
if not contributions: