From 65a2f741f6889e729f22477ef0d492a7986434ff Mon Sep 17 00:00:00 2001 From: Bernard Siebens Date: Wed, 15 Jul 2026 08:35:19 +0200 Subject: [PATCH] Format: collapse a chained queryset to one line ruff format, no behaviour change. Co-Authored-By: Claude Opus 4.8 --- billing/services/dues.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/billing/services/dues.py b/billing/services/dues.py index c8c151a..a39837f 100644 --- a/billing/services/dues.py +++ b/billing/services/dues.py @@ -171,12 +171,7 @@ def subscriptions_due_for_renewal(today: date | None = None, lead_days: int = RE output_field=DateField(), ) - subscriptions = ( - Subscription.objects.filter(auto_renew=True, club__archived_at__isnull=True) - .select_related("club", "tier") - .annotate(latest_period_end=latest_period_end) - .order_by("club__name") - ) + subscriptions = Subscription.objects.filter(auto_renew=True, club__archived_at__isnull=True).select_related("club", "tier").annotate(latest_period_end=latest_period_end).order_by("club__name") return [subscription for subscription in subscriptions if subscription.latest_period_end is None or subscription.latest_period_end <= horizon]