Skip to content

Commit

Permalink
Stop removing project_copy_metadata field (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-cord committed Feb 23, 2023
1 parent 5a35b42 commit a9e1002
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions encord/client.py
Expand Up @@ -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(
Expand Down

0 comments on commit a9e1002

Please sign in to comment.