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

What is the best way to access commodity metadata #1467

Closed
redstreet opened this issue Aug 7, 2022 · 2 comments
Closed

What is the best way to access commodity metadata #1467

redstreet opened this issue Aug 7, 2022 · 2 comments
Labels

Comments

@redstreet
Copy link
Contributor

With FavaLedger.entries being deprecated, what is the best way to access a commodity's metadata (found in its commodity declaration)? This is not guaranteed to be available in the filtered context since the commodity declaration may be outside the currently selected date interval.

I was previously accessing it this way: getters.get_commodity_directives(ledger.entries).

@yagebu
Copy link
Member

yagebu commented Aug 7, 2022

You can still get the list of all entries with ledger.all_entries. Or even better just ledger.all_entries_by_type.Commodity.

@yagebu yagebu closed this as completed Aug 7, 2022
@yagebu yagebu added the question label Aug 7, 2022
@redstreet
Copy link
Contributor Author

Perfect, thanks @yagebu !

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

No branches or pull requests

2 participants