From a254824f6831b281cbbf8f7d944822d175be5bda Mon Sep 17 00:00:00 2001 From: Andria Capai Date: Thu, 7 Mar 2024 14:55:57 +0100 Subject: [PATCH] fix: change literal(impr.id_dataset) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit utiliser la colonne id_dataset de la table t_import_synthese plutôt que d’utiliser la valeur litéral imprt.id_dataset --- backend/geonature/core/gn_synthese/imports/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/geonature/core/gn_synthese/imports/__init__.py b/backend/geonature/core/gn_synthese/imports/__init__.py index 0a849fef13..eccdcb1353 100644 --- a/backend/geonature/core/gn_synthese/imports/__init__.py +++ b/backend/geonature/core/gn_synthese/imports/__init__.py @@ -325,7 +325,7 @@ def import_data_to_synthese(imprt): *[transient_table.c[field.dest_field] for field in insert_fields], sa.literal(source.id_source), sa.literal(source.module.id_module), - sa.literal(imprt.id_dataset), + transient_table.c.id_dataset, sa.literal("I"), ) .where(transient_table.c.id_import == imprt.id_import)