Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API errors when no accounts are set up #3

Open
asymworks opened this issue Mar 3, 2021 · 0 comments
Open

API errors when no accounts are set up #3

asymworks opened this issue Mar 3, 2021 · 0 comments

Comments

@asymworks
Copy link
Owner

asymworks commented Mar 3, 2021

GET /api/v1/ledger fails when no accounts are set up and frontend dashboard shows error. Traceback:

File "/Users//Projects/JadeTree/backend/jadetree/api/v1/budget/base.py", line 135, in get
data = budget_service.get_budget_month(
File "/Users//Projects/JadeTree/backend/jadetree/service/budget/data.py", line 234, in get_budget_month
budget_data = get_budget_data(session, user, budget_id)
File "/Users//Projects/JadeTree/backend/jadetree/service/budget/data.py", line 184, in get_budget_data
parent_id=categories[cat].parent_id,
KeyError: 38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant