todo comment (some more)
Tests / test (push) Successful in 11s
Tests / lint (push) Failing after 7s

This commit is contained in:
2026-10-27 20:48:56 +01:00
parent 5810f16901
commit 8a0c98e9bb
+7
View File
@@ -77,8 +77,12 @@ class Category(ExportBaseModel):
return f'Category.from_str("{self.__str__()}")'
def get_budget(self, date_valid: date | None) -> float:
# TODO
...
def get_tree_to_root(self) -> CategoryTree:
# TODO (maybe)
...
class CategoryDb(BaseModelDb):
__tablename__ = "category"
@@ -256,6 +260,9 @@ class CategoryTree(BaseModel):
result += sum(category.category.get_budget(date_valid) for category in self.sub_categories)
return result
def __add__(self, other):
...
def build_category_tree(transactions: list[Transaction]) -> list[CategoryTree]:
# TODO: loop through flat list a build a category tree
result = []