diff --git a/fixbackend/inventory/inventory_service.py b/fixbackend/inventory/inventory_service.py index a5cbd6d0..4117fc1a 100644 --- a/fixbackend/inventory/inventory_service.py +++ b/fixbackend/inventory/inventory_service.py @@ -782,6 +782,7 @@ async def resources_per_account_timeline() -> Scatters: end=now, granularity=timedelta(days=1), group={"account_id"}, + filter_group=["account_id!=null"], aggregation="sum", ) for scatter in scatters.groups: diff --git a/fixbackend/notification/email/status_update_email_creator.py b/fixbackend/notification/email/status_update_email_creator.py index 21b4726a..c02f5883 100644 --- a/fixbackend/notification/email/status_update_email_creator.py +++ b/fixbackend/notification/email/status_update_email_creator.py @@ -156,6 +156,7 @@ async def resources_per_account_timeline() -> Tuple[Scatters, bytes]: end=now, granularity=timedelta(days=1), group={"account_id"}, + filter_group=["account_id!=null"], aggregation="sum", ) for scatter in scatters.groups: