Skip to content

Commit

Permalink
fix: fava ledger.entries deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
polarmutex committed Oct 24, 2022
1 parent 3998f9c commit 39016f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fava_envelope/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from beancount.core.number import Decimal
from fava import __version__ as fava_version
from fava.context import g
from fava.ext import FavaExtensionBase

from .modules.beancount_envelope import BeancountEnvelope
Expand All @@ -17,7 +18,7 @@ class EnvelopeBudget(FavaExtensionBase):
def generate_budget_df(self, currency):
self.currency = currency
module = BeancountEnvelope(
self.ledger.entries, self.ledger.options, self.currency
g.ledger.all_entries, self.ledger.options, self.currency
)
(
self.income_tables,
Expand Down

0 comments on commit 39016f4

Please sign in to comment.