From 8b41e8c2c6c88b2866993213351ec59f2c8a2d2e Mon Sep 17 00:00:00 2001 From: chrisjsimpson Date: Sun, 11 Feb 2024 11:17:16 +0000 Subject: [PATCH] Ref #1295 remove Events auto_paging_iter as auto pager appears to be duplicating returned events --- subscribie/blueprints/admin/__init__.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/subscribie/blueprints/admin/__init__.py b/subscribie/blueprints/admin/__init__.py index 74f0eac5..23f753b8 100644 --- a/subscribie/blueprints/admin/__init__.py +++ b/subscribie/blueprints/admin/__init__.py @@ -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