Skip to content

Commit

Permalink
fix(import): get_import_values
Browse files Browse the repository at this point in the history
  • Loading branch information
20cents committed Nov 22, 2024
1 parent 0866279 commit fe063e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/geonature/core/imports/routes/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def get_import_values(scope, imprt):
# this nomenclated field is not mapped
continue
source = imprt.fieldmapping[field.name_field]
if source not in imprt.columns:
if source.get("column_src", None) not in imprt.columns:
# the file do not contain this field expected by the mapping
continue
# TODO: vérifier que l’on a pas trop de valeurs différentes ?
Expand Down

0 comments on commit fe063e0

Please sign in to comment.