From af786852f5bfc0a18b913a647dc0a39c398122ed Mon Sep 17 00:00:00 2001 From: TLAIDI Date: Mon, 31 Jul 2023 10:22:31 +0200 Subject: [PATCH] fix(api): fix again failed tests (#1646) --- antarest/study/storage/variantstudy/variant_study_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/antarest/study/storage/variantstudy/variant_study_service.py b/antarest/study/storage/variantstudy/variant_study_service.py index c32119c56f..50a96cd1f5 100644 --- a/antarest/study/storage/variantstudy/variant_study_service.py +++ b/antarest/study/storage/variantstudy/variant_study_service.py @@ -846,7 +846,7 @@ def _generate( export_study_flat( snapshot_path, dst_path, - parent_study, + self.study_factory, outputs=False, output_src_path=output_src_path, ) @@ -858,7 +858,7 @@ def _generate( export_study_flat( path_study=path_study, dest=dst_path, - study_factory=parent_study, + study_factory=self.study_factory, outputs=False, ) finally: