From 89545891f6faece79302dea933e51eb796e8c4bd Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Wed, 13 Dec 2023 23:07:18 +0100 Subject: [PATCH] support: Filter remote realm data query for customer realm None. --- corporate/lib/analytics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corporate/lib/analytics.py b/corporate/lib/analytics.py index 16fa6feecf..d2e2d40e52 100644 --- a/corporate/lib/analytics.py +++ b/corporate/lib/analytics.py @@ -56,7 +56,7 @@ def estimate_annual_recurring_revenue_by_realm() -> Dict[str, int]: # nocoverag def get_plan_data_by_remote_server() -> Dict[int, RemoteActivityPlanData]: # nocoverage remote_server_plan_data: Dict[int, RemoteActivityPlanData] = {} for plan in CustomerPlan.objects.filter( - status__lt=CustomerPlan.LIVE_STATUS_THRESHOLD + status__lt=CustomerPlan.LIVE_STATUS_THRESHOLD, customer__realm__isnull=True ).select_related("customer__remote_server", "customer__remote_realm"): renewal_cents = 0 server_id = None