Refactor code for improved readability and consistency across multiple files
Gitea Actions CI / detect (push) Successful in 3s
Gitea Actions CI / Compose & nginx validation (push) Failing after 14s
Gitea Actions CI / Frontend (lint / type / test / build) (push) Successful in 45s
Gitea Actions CI / Backend (lint / type / test / build) (push) Successful in 1m31s

This commit is contained in:
k1nq
2026-09-23 15:22:26 +05:00
parent f5ae63e158
commit 970fe9dacf
9 changed files with 39 additions and 75 deletions
+1 -4
View File
@@ -39,10 +39,7 @@ def category_spend(
.scalar()
)
totals[expense.category_id] += expense.amount_kopecks - int(refunded or 0)
categories = {
item.id: item
for item in db.query(Category).filter_by(space_id=space_id).all()
}
categories = {item.id: item for item in db.query(Category).filter_by(space_id=space_id).all()}
return [
{
"category_id": category_id,