From 698fca40e72e2e831855cb69fff917f9d12100cf Mon Sep 17 00:00:00 2001 From: Ben <106089368+benflexcompute@users.noreply.github.com> Date: Thu, 19 Jun 2025 11:24:47 -0400 Subject: [PATCH] Fixed a V1 issue where the caseMeta class have different projectID access (#1178) --- 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 fa6ef6ba3..a4f31b6aa 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":