style(backend): apply Black formatting to credit.py set-difference expressions

This commit is contained in:
Zamil Majdy
2026-04-13 04:45:35 +00:00
parent 8a2dd8f62a
commit 557ff84196

View File

@@ -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(