diff --git a/src/accounting/utils/options.py b/src/accounting/utils/options.py index 2508b02..31d78d2 100644 --- a/src/accounting/utils/options.py +++ b/src/accounting/utils/options.py @@ -132,7 +132,7 @@ class Options: code: str = self.default_ie_account_code if code == CurrentAccount.CURRENT_AL_CODE: return str(CurrentAccount.current_assets_and_liabilities()) - return str(CurrentAccount(db.session.get(Account, code))) + return str(CurrentAccount(Account.find_by_code(code))) @property def default_ie_account(self) -> CurrentAccount: