Skip to content

Commit

Permalink
#1295 remove auto_paging_iter from stats.py for recent cancellations
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsimpson committed Feb 11, 2024
1 parent effc5e4 commit 3517d6f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions subscribie/blueprints/admin/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,4 @@ def get_number_of_recent_subscription_cancellations():
types=["customer.subscription.deleted"],
)

for event in subscription_cancellations.auto_paging_iter():
log.info("appending event")
log.info(
f"Length of subscription_cancellations.data is {len(subscription_cancellations.data)}" # noqa: E501
)
if len(subscription_cancellations.data) > 100:
break
subscription_cancellations.data.append(event)

return len(subscription_cancellations)

0 comments on commit 3517d6f

Please sign in to comment.