Format: collapse a chained queryset to one line

ruff format, no behaviour change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-15 08:35:19 +02:00
parent 975426a17f
commit 65a2f741f6

View File

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