Skip to content

Commit c06d91a

Browse files
committed
removing path, exchanging variable positions
1 parent d618b74 commit c06d91a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __init__(
8686
):
8787
super().__init__(token, config_path)
8888

89-
def get_folder_by_id(self, folder_id: int, project_id: int):
89+
def get_folder_by_id(self, project_id: int, folder_id: int):
9090
"""Returns the folder
9191
:param folder_id: the id of the folder
9292
:param project_id: the id of the project
@@ -99,7 +99,7 @@ def get_folder_by_id(self, folder_id: int, project_id: int):
9999
project_id=project_id
100100
)
101101

102-
return FolderSerializer(response).serialize()
102+
return FolderSerializer(response).serialize(exclude={"completedCount", "is_root"})
103103

104104
def get_project_by_id(self, project_id: int):
105105
"""Returns the project
@@ -113,7 +113,7 @@ def get_project_by_id(self, project_id: int):
113113

114114
return ProjectSerializer(response.data).serialize()
115115

116-
def get_item_by_id(self, item_id: int, project_id: int):
116+
def get_item_by_id(self, project_id: int, item_id: int):
117117
"""Returns the project
118118
:param item_id: the id of the item
119119
:param project_id: the id of the project
@@ -126,7 +126,7 @@ def get_item_by_id(self, item_id: int, project_id: int):
126126
project_id=project_id
127127
)
128128

129-
return ItemSerializer(response).serialize()
129+
return ItemSerializer(response).serialize(exclude = {"path"})
130130

131131

132132
def get_team_metadata(self):

0 commit comments

Comments
 (0)