From e5e2099cea5657e496841f2b8fe1f6728dab50dc Mon Sep 17 00:00:00 2001 From: belthlemar Date: Tue, 8 Oct 2024 17:08:53 +0200 Subject: [PATCH] handle both writing --- antareslauncher/study_dto.py | 1 + 1 file changed, 1 insertion(+) diff --git a/antareslauncher/study_dto.py b/antareslauncher/study_dto.py index 38deeb0..65fdf93 100644 --- a/antareslauncher/study_dto.py +++ b/antareslauncher/study_dto.py @@ -59,4 +59,5 @@ def from_dict(cls, doc: t.Mapping[str, t.Any]) -> "StudyDTO": """ attrs = dict(**doc) attrs.pop("name", None) # calculated + attrs["antares_version"] = StudyVersion.parse(attrs["antares_version"]) return cls(**attrs)