Skip to content

Commit

Permalink
Remove presta_type sync with emplois
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilouf committed Jan 30, 2025
1 parent fcc0dda commit f451087
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@
C1_EXTRA_KEYS = ["convention_is_active", "convention_asp_id"]


def map_siae_presta_type(siae_kind):
if siae_kind:
if siae_kind in ["ETTI", "AI"]:
return [siae_constants.PRESTA_DISP]
return [siae_constants.PRESTA_PREST, siae_constants.PRESTA_BUILD]
return []


def map_siae_nature(siae_source):
if siae_source:
if siae_source in ["ASP", "GEIQ", "EA_EATT"]:
Expand Down Expand Up @@ -156,7 +148,6 @@ def c1_export(self): # noqa C901
c1_siae_cleaned = {
**c1_siae,
"siret_is_valid": siret.is_valid(c1_siae["siret"]),
"presta_type": map_siae_presta_type(c1_siae["kind"]),
"nature": map_siae_nature(c1_siae["source"]),
"phone": re.sub("[^0-9]", "", c1_siae["phone"]),
"email": c1_siae["email"] or "",
Expand Down

0 comments on commit f451087

Please sign in to comment.