File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,16 @@ def workspace_id(self) -> int:
182182 """Returns ID of the workspace where the project belongs"""
183183 # unfortunately we currently do not have information about workspace ID
184184 # in project's metadata...
185- raise NotImplementedError
185+ if self ._metadata is None :
186+ self ._read_metadata ()
187+
188+ # "workspace_id" does not exist in projects downloaded with old client version
189+ if self .is_old_metadata :
190+ raise ClientError (
191+ "The project directory has been created with an old version of the Mergin Maps client. "
192+ "Please delete the project directory and re-download the project."
193+ )
194+ return self ._metadata ["workspace_id" ]
186195
187196 def version (self ) -> str :
188197 """Returns project version (e.g. "v123")"""
You can’t perform that action at this time.
0 commit comments