From 251ec8a7cd0fe941a88ff6b96dd9f1c93352c15a 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 db134d18ad..765c9b053a 100644 --- a/antarest/study/storage/variantstudy/variant_study_service.py +++ b/antarest/study/storage/variantstudy/variant_study_service.py @@ -726,7 +726,7 @@ def _generate( export_study_flat( snapshot_path, dst_path, - parent_study, + self.study_factory, outputs=False, output_src_path=output_src_path, ) @@ -738,7 +738,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: