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
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user