Skip to content

Commit

Permalink
docs: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
HAEKADI committed Oct 2, 2024
1 parent c8edb0e commit c7420b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workflows/data_pipelines/elasticsearch/data_enrichment.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ def format_slug(
if nom_commercial_siege:
slug_parts.append(nom_commercial_siege)
else:
# When a company removes a commercial name,
# INSEE sets its old "denomination usuelle" to "SUPPRESSION DU NOM COMMERCIAL".
# Removing said mention.
denomination_usuelle = " ".join(
filter(
lambda x: x and x != "SUPPRESSION DU NOM COMMERCIAL",
Expand Down

0 comments on commit c7420b5

Please sign in to comment.