Skip to content

Commit

Permalink
fix(Import des emplois): exclusion du type OPCS de l'import (#1603)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller authored Dec 20, 2024
1 parent b50530a commit 67a64ab
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,14 @@ def filter_c1_export(self, c1_list):
c1_list_filtered = []

for c1_siae in c1_list:
if c1_siae["kind"] not in ("RESERVED",): # do nothing if kind is filtered as reserved
if c1_siae["kind"] not in ["RESERVED", "OPCS"]: # do nothing if kind is filtered as reserved
if c1_siae["kind"] in siae_constants.KIND_INSERTION_LIST + siae_constants.KIND_HANDICAP_LIST:
c1_list_filtered.append(c1_siae)
else:
logger.error(
f"Kind not supported: {c1_siae['kind']}/{c1_siae['id']}/{c1_siae['name']}/{c1_siae['siret']}"
"Kind not supported: %s",
c1_siae["kind"],
extra=dict(c1_id=c1_siae["id"], c1_name=c1_siae["name"], c1_siret=c1_siae["siret"]),
)
return c1_list_filtered

Expand Down

0 comments on commit 67a64ab

Please sign in to comment.