From 41f3ae86c012ad4b27337d7c1b2d310b7832ee43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rald=20Gounot?= Date: Tue, 24 Sep 2024 11:28:16 +0200 Subject: [PATCH] =?UTF-8?q?=5Fget=5Fdi=5Fresults():=20exclus=20les=20servi?= =?UTF-8?q?ces=20d'une=20th=C3=A9matique=20qui=20n'est=20pas=20=C3=A0=20de?= =?UTF-8?q?stination=20des=20b=C3=A9n=C3=A9ficiaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit logement-hebergement--aides-financieres-investissement-locatif --- dora/services/search.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dora/services/search.py b/dora/services/search.py index 04a9fd04..d07042ec 100644 --- a/dora/services/search.py +++ b/dora/services/search.py @@ -169,6 +169,16 @@ def _get_di_results( ) ] + # Exclus les services Action Logement ayant comme thématique + # logement-hebergement--aides-financieres-investissement-locatif + # car ce ne sont pas des services a destination des bénéficiaires + raw_di_results = [ + result + for result in raw_di_results + if "logement-hebergement--aides-financieres-investissement-locatif" + not in result["service"]["thematiques"] + ] + supported_service_kinds = models.ServiceKind.objects.values_list("value", flat=True) mapped_di_results = [