From 8a9712fad8f5f48e763cb5ed3c194ec28b70c51e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Voron?= Date: Mon, 13 Jan 2025 10:53:57 +0100 Subject: [PATCH] server/integrations/plain: fix organization card JSON output This time, `exclude_none`! --- server/polar/integrations/plain/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/polar/integrations/plain/service.py b/server/polar/integrations/plain/service.py index 9e55f45331..9b95866cd2 100644 --- a/server/polar/integrations/plain/service.py +++ b/server/polar/integrations/plain/service.py @@ -207,7 +207,8 @@ async def _get_organization_card( key=CustomerCardKey.organization, timeToLiveSeconds=86400, components=[ - component.model_dump(by_alias=True) for component in components + component.model_dump(by_alias=True, exclude_none=True) + for component in components ], )