Skip to content

Commit be9461b

Browse files
committed
Add support of ExternalWorkforce as an input for remove_External_workforce
1 parent 31276e6 commit be9461b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/labelbox/src/labelbox/schema/project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,6 +1885,7 @@ def remove_external_workforce(self, workforce_id: Union[str, ExternalWorkforce])
18851885
Raises:
18861886
LabelboxError: If the external workforce cannot be found.
18871887
"""
1888+
workforce_id = workforce_id.uid if isinstance(workforce_id, ExternalWorkforce) else workforce_id
18881889

18891890
mutation = """
18901891
mutation UnshareProjectWithExternalOrganizationPyApi($projectId: ID!, $organizationId: ID!) {

0 commit comments

Comments
 (0)