Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
_get_di_results(): exclus les services d'une thématique qui n'est pas…
Browse files Browse the repository at this point in the history
… à destination des bénéficiaire

logement-hebergement--aides-financieres-investissement-locatif
  • Loading branch information
ggounot committed Sep 24, 2024
1 parent 8030f6f commit 41f3ae8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dora/services/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 41f3ae8

Please sign in to comment.