Skip to content

Commit

Permalink
[WIP][TO FIXUP PREVIOUS?]fix(sync_inpn_mtd): fix associate_actors
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentCauchois committed Nov 29, 2024
1 parent e9a739f commit e2bb9b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/geonature/core/gn_meta/mtd/mtd_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ def associate_actors(
# - take a base value which is enough high to avoid conflicts with INPN users IDs
# - start from the maximum or minimum value allowed by 'serial4' PostgreSQL type
# - whether to add a new user or a new organism...
cd_nomenclature_actor_role_for_contact_principal = "1"
if cd_nomenclature_actor_role == cd_nomenclature_actor_role_for_contact_principal:
cd_nomenclature_actor_role_for_contact_principal_af = "1"
if type_mtd == "AF" and cd_nomenclature_actor_role == cd_nomenclature_actor_role_for_contact_principal_af:
### Alternative 0 (see TODO above):
### UNCOMMENT the folowing section if this alternative is eventually chosen
# # Get an integer that is equals to 1 less than the minimum of `utilisateurs.id_role` field in database
Expand Down

0 comments on commit e2bb9b7

Please sign in to comment.