Skip to content

Commit

Permalink
Fix #1282 include archived plans in calculating active subscribers
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsimpson committed Jan 30, 2024
1 parent 23cfc11 commit 9c65d62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subscribie/blueprints/admin/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def get_number_of_active_subscribers():
.join(Plan, Subscription.sku_uuid == Plan.uuid)
.join(PlanRequirements, Plan.id == PlanRequirements.plan_id)
.filter(PlanRequirements.subscription == 1)
.execution_options(include_archived=True)
)
# Check if their subscriptions are active
for subscriber in subscribers_with_subscriptions:
Expand Down

0 comments on commit 9c65d62

Please sign in to comment.