From f4481021650ee18875347714a4b723904195ee38 Mon Sep 17 00:00:00 2001 From: BenYuan Date: Thu, 19 Jun 2025 15:09:43 +0000 Subject: [PATCH] Fixed a V1 issue where the caseMeta class have different projectID access --- flow360/component/case.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flow360/component/case.py b/flow360/component/case.py index 1babe673c..89e29486c 100644 --- a/flow360/component/case.py +++ b/flow360/component/case.py @@ -544,7 +544,11 @@ def info(self) -> CaseMetaV2: @property def project_id(self) -> Optional[str]: """Returns the project id of the case if case was run with V2 interface.""" - return self.info.project_id + if isinstance(self.info, CaseMeta): + return self.info.projectId + if isinstance(self.info, CaseMetaV2): + return self.info.project_id + raise ValueError("Case info is not of type CaseMeta or CaseMetaV2") @property def volume_mesh(self) -> "VolumeMeshV2":