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

When calculating number of active subscriber, include archived plans (because they can be associated with active subscriptions) #1282

Closed
chrisjsimpson opened this issue Jan 30, 2024 · 0 comments
Labels
released This issue/pull request has been released.

Comments

@chrisjsimpson
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When calculating number of active subscriber, include archived plans (because they can be associated with active subscriptions- just because a plan is archived and no longer for sales does not mean existing subscribers's subscriptions are inactive to that plan)

Describe the solution you'd like
add .execution_options(include_archived=True) to get_number_of_active_subscribers

Describe alternatives you've considered

Additional context

.filter(PlanRequirements.subscription == 1)

@github-actions github-actions bot added the released This issue/pull request has been released. label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

No branches or pull requests

1 participant