From a9e1002af0ebf307c6a84447a2460a3b59d3bf5b Mon Sep 17 00:00:00 2001 From: denis-cord <94055292+denis-cord@users.noreply.github.com> Date: Thu, 23 Feb 2023 09:45:43 +0000 Subject: [PATCH] Stop removing project_copy_metadata field (#248) --- encord/client.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/encord/client.py b/encord/client.py index 0aa8a0d5..4252d47a 100644 --- a/encord/client.py +++ b/encord/client.py @@ -655,16 +655,6 @@ def copy_project( if copy_collaborators: payload.copy_project_options.append(ProjectCopyOptions.COLLABORATORS) - # NOTE: In order to keep backward compaitbily we need to remove the `project_copy_metadata` - # since the server is not ready to handle a `project_copy_metadata` without a title - if all( - [ - getattr(payload.project_copy_metadata, field.name) is None - for field in dataclasses.fields(payload.project_copy_metadata) - ] - ): - payload.project_copy_metadata = None - return self._querier.basic_setter(ProjectCopy, self._config.resource_id, payload=dataclasses.asdict(payload)) def get_label_row(