From 2500943180fd2b635782dbed8d164c0c9fa046d7 Mon Sep 17 00:00:00 2001 From: rikuke <33894149+rikuke@users.noreply.github.com> Date: Tue, 11 Jun 2024 15:00:23 +0300 Subject: [PATCH] fix: excluded full_application attachment (#3081) --- backend/benefit/applications/services/ahjo_payload.py | 3 +-- backend/benefit/applications/tests/test_ahjo_payload.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/benefit/applications/services/ahjo_payload.py b/backend/benefit/applications/services/ahjo_payload.py index ccb84fb67f..ae09a8b0c9 100644 --- a/backend/benefit/applications/services/ahjo_payload.py +++ b/backend/benefit/applications/services/ahjo_payload.py @@ -191,8 +191,7 @@ def _prepare_case_records( open_case_attachments = application.attachments.exclude( attachment_type__in=[ - AttachmentType.PDF_SUMMARY, - AttachmentType.FULL_APPLICATION, + AttachmentType.PDF_SUMMARY, # The main document is already added AttachmentType.DECISION_TEXT_XML, AttachmentType.DECISION_TEXT_SECRET_XML, ] diff --git a/backend/benefit/applications/tests/test_ahjo_payload.py b/backend/benefit/applications/tests/test_ahjo_payload.py index f7f0f7fbf2..c9868e23dc 100644 --- a/backend/benefit/applications/tests/test_ahjo_payload.py +++ b/backend/benefit/applications/tests/test_ahjo_payload.py @@ -184,7 +184,6 @@ def test_prepare_case_records(decided_application, settings): open_case_attachments = application.attachments.exclude( attachment_type__in=[ AttachmentType.PDF_SUMMARY, - AttachmentType.FULL_APPLICATION, AttachmentType.DECISION_TEXT_XML, AttachmentType.DECISION_TEXT_SECRET_XML, ]