Skip to content

Commit 24e6b96

Browse files
committed
Fix clone project
1 parent 406ce7b commit 24e6b96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/superannotate/lib/app/interface/sdk_interface.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,12 +1353,12 @@ def clone_project(
13531353

13541354
if response.errors:
13551355
raise AppException(response.errors)
1356-
project = ProjectSerializer(response.data).serialize()
1357-
for contributor in project["contributors"]:
1356+
project_data = ProjectSerializer(response.data).serialize()
1357+
for contributor in project_data["contributors"]:
13581358
contributor["role"] = self.controller.service_provider.get_role_name(
13591359
project, contributor["role"]
13601360
)
1361-
return project
1361+
return project_data
13621362

13631363
def create_categories(
13641364
self, project: Union[NotEmptyStr, int], categories: List[NotEmptyStr]

0 commit comments

Comments
 (0)