Skip to content

Commit 3680feb

Browse files
committed
Remove depricated list items method
1 parent b7bf848 commit 3680feb

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/superannotate/lib/infrastructure/services/item_service.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,6 @@ def get(self, project_id: int, item_id: int, query: Query):
2828
)
2929
return result
3030

31-
def old_list(self, project_id: int, folder_id: Optional[int], query: Query):
32-
query &= Join("metadata", ["path"])
33-
entity_context = [
34-
f'"team_id":{self.client.team_id}',
35-
f'"project_id":{project_id}',
36-
]
37-
if folder_id:
38-
entity_context.append(f'"folder_id":{folder_id}')
39-
result = self.client.paginate(
40-
f"{self.URL_LIST}?{query.build_query()}",
41-
item_type=BaseItemEntity,
42-
headers={
43-
"x-sa-entity-context": base64.b64encode(
44-
f"{{{','.join(entity_context)}}}".encode("utf-8")
45-
).decode()
46-
},
47-
)
48-
return result
49-
5031
def list(self, project_id: int, folder_id: Optional[int], query: Query):
5132
query &= Join("metadata", ["path"])
5233
entity_context = [

0 commit comments

Comments
 (0)