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

Optimised ledger functions #62

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

sameer-639
Copy link
Contributor

No description provided.

@sameer-639 sameer-639 changed the title Optimised get account balance function Optimised ledger functions Apr 3, 2024

def get_account_balance(self, account: str, as_of: Optional[datetime] = None):
assert self.config['accounts'][account]['type'] in self.config['account_types']
if as_of is not None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this condition should come inside "if balancetype is Debit" check?

@sameer-639 sameer-639 merged commit cac9531 into main Apr 3, 2024
1 check passed
@sameer-639 sameer-639 deleted the fix/optimising_get_account_balance_function branch April 3, 2024 11:55
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

Successfully merging this pull request may close these issues.

3 participants