Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions src/superannotate/lib/app/interface/sdk_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,13 +795,18 @@ def assign_folder(
:type users: list of str
"""

contributors = (
self.controller.projects.get_by_name(
project_name=project_name, include_contributors=True
)
.data["project"]
.users
response = self.controller.projects.get_by_name(name=project_name)
if response.errors:
raise AppException(response.errors)
project = response.data
response = self.controller.projects.get_metadata(
project=project, include_contributors=True
)

if response.errors:
raise AppException(response.errors)

contributors = response.data.users
verified_users = [i["user_id"] for i in contributors]
verified_users = set(users).intersection(set(verified_users))
unverified_contributor = set(users) - verified_users
Expand Down