Skip to content

Commit

Permalink
Ref #1295 remove Events auto_paging_iter as auto pager appears to be …
Browse files Browse the repository at this point in the history
…duplicating returned events
  • Loading branch information
chrisjsimpson committed Feb 11, 2024
1 parent 3fc3d1f commit 8b41e8c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions subscribie/blueprints/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1313,14 +1313,6 @@ def show_recent_subscription_cancellations():
limit=100,
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)

cancellations = []
# subscription id
Expand Down

0 comments on commit 8b41e8c

Please sign in to comment.