Skip to content

Commit

Permalink
Merge pull request #29 from soloam/fix_budget_limits
Browse files Browse the repository at this point in the history
fix: empty budget limits
  • Loading branch information
soloam committed May 21, 2024
2 parents 8cd6436 + ae29f08 commit 2d0a0d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ async def budgets(self, ids=None, currency=None) -> FireflyiiiObjectBaseList:
"GET", f"/budgets/{budget_id}/limits", params
)
if not budget_limits or not "data" in budget_limits or len(budget_limits["data"]) < 1:
budget_limits = {}
budget_limit = {}
else:
budget_limit = budget_limits["data"][0]

Expand Down

0 comments on commit 2d0a0d1

Please sign in to comment.