diff --git a/antarest/study/business/optimization_management.py b/antarest/study/business/optimization_management.py index cb599d12e2..a33236997b 100644 --- a/antarest/study/business/optimization_management.py +++ b/antarest/study/business/optimization_management.py @@ -132,7 +132,7 @@ def get_field_values(self, study: Study) -> OptimizationFormFields: def get_value(field_info: FieldInfo) -> Any: path = field_info["path"] study_ver = file_study.config.version - start_ver = cast(int, field_info.get("start_version", -1)) + start_ver = cast(int, field_info.get("start_version", 0)) target_name = path.split("/")[-1] is_in_version = start_ver <= study_ver diff --git a/requirements.txt b/requirements.txt index 228814e8c5..2a7ff60a2d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ Antares-Launcher~=1.3.2 -antares-study-version~=1.0.6 +antares-study-version==1.0.6 antares-timeseries-generation~=0.1.5 # When you install `fastapi[all]`, you get FastAPI along with additional dependencies: diff --git a/tests/storage/business/test_study_version_upgrader.py b/tests/storage/business/test_study_version_upgrader.py index 4fa7e940ec..39ce1da653 100644 --- a/tests/storage/business/test_study_version_upgrader.py +++ b/tests/storage/business/test_study_version_upgrader.py @@ -188,7 +188,7 @@ def assert_settings_are_updated(tmp_path: Path, old_values: List[str]) -> None: assert adequacy_patch["threshold-initiate-curtailment-sharing-rule"] == 0.0 assert adequacy_patch["threshold-display-local-matching-rule-violations"] == 0.0 assert adequacy_patch["threshold-csr-variable-bounds-relaxation"] == 3 - assert adequacy_patch["enable-first-step"] + assert not adequacy_patch["enable-first-step"] def get_old_settings_values(tmp_path: Path) -> List[str]: