From 557ff84196fe5616b19fe502145a90e68c71b4b6 Mon Sep 17 00:00:00 2001 From: Zamil Majdy Date: Mon, 13 Apr 2026 04:45:35 +0000 Subject: [PATCH] style(backend): apply Black formatting to credit.py set-difference expressions --- autogpt_platform/backend/backend/data/credit.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/autogpt_platform/backend/backend/data/credit.py b/autogpt_platform/backend/backend/data/credit.py index 21b1664f4f..59d6779431 100644 --- a/autogpt_platform/backend/backend/data/credit.py +++ b/autogpt_platform/backend/backend/data/credit.py @@ -1522,12 +1522,10 @@ async def sync_subscription_from_stripe(stripe_subscription: dict) -> None: customer_id, ) return - other_active_ids = {sub["id"] for sub in other_subs_active.data} - { + other_active_ids = {sub["id"] for sub in other_subs_active.data} - {new_sub_id} + other_trialing_ids = {sub["id"] for sub in other_subs_trialing.data} - { new_sub_id } - other_trialing_ids = { - sub["id"] for sub in other_subs_trialing.data - } - {new_sub_id} still_has_active_sub = bool(other_active_ids or other_trialing_ids) if still_has_active_sub: logger.info(