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

Add method to retrieve "active" bundle. #380

Open
tdstein opened this issue Jan 28, 2025 · 0 comments
Open

Add method to retrieve "active" bundle. #380

tdstein opened this issue Jan 28, 2025 · 0 comments
Labels
sdk Used for automation

Comments

@tdstein
Copy link
Collaborator

tdstein commented Jan 28, 2025

Add a helper method to the Bundles class, retrieving the "active" bundle. This is determined by checking the active field on the bundle object. Currently, the this can only be done by retrieving the full bundle list and then filtering for the match.

client = connect.Client()
content = client.content.get(guid)
bundle = content.bundles.active()
@github-actions github-actions bot added the sdk Used for automation label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sdk Used for automation
Projects
None yet
Development

No branches or pull requests

1 participant