From 50b7210a9b43efa3af2b61d8e949420ee5bdb543 Mon Sep 17 00:00:00 2001 From: Daniele Andreotti Date: Wed, 28 Aug 2024 10:13:46 +0200 Subject: [PATCH] updated naming --- .../contenttypes/restapi/services/modulistica_items/get.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/iosanita/contenttypes/restapi/services/modulistica_items/get.py b/src/iosanita/contenttypes/restapi/services/modulistica_items/get.py index aac965b..a7e968d 100644 --- a/src/iosanita/contenttypes/restapi/services/modulistica_items/get.py +++ b/src/iosanita/contenttypes/restapi/services/modulistica_items/get.py @@ -42,7 +42,9 @@ def get_modulistica_data(self, context=None): context = self.context res = [] for brain in context.getFolderContents(): - if brain.portal_type == "Document" and brain.getId == "multimedia": + if brain.portal_type == "Document" and ( + brain.getId == "immagini" or brain.getId == "documenti" + ): continue child = brain.getObject() serializer = queryMultiAdapter(