Skip to content

Commit ba2cdfa

Browse files
committed
minor changes
1 parent 9b9b275 commit ba2cdfa

File tree

5 files changed

+207
-178
lines changed

5 files changed

+207
-178
lines changed

src/superannotate/lib/app/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class ProjectSerializer(BaseSerializer):
116116
def serialize(
117117
self,
118118
fields: List[str] = None,
119-
by_alias: bool = True,
119+
by_alias: bool = False,
120120
flat: bool = False,
121121
exclude: Set[str] = None,
122122
):

src/superannotate/lib/core/serviceproviders.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,3 +418,33 @@ def list_annotation_classes(
418418
self, project_id: int, team_id: int, query_string: str = None
419419
):
420420
raise NotImplementedError
421+
422+
@abstractmethod
423+
async def download_big_annotation(
424+
self,
425+
project_id: int,
426+
team_id: int,
427+
download_path: str,
428+
postfix: str,
429+
item: dict,
430+
callback: Callable = None,
431+
):
432+
raise NotImplementedError
433+
434+
@abstractmethod
435+
async def download_small_annotations(
436+
self,
437+
project_id: int,
438+
team_id: int,
439+
folder_id: int,
440+
reporter: Reporter,
441+
download_path: str,
442+
postfix: str,
443+
items: List[str] = None,
444+
callback: Callable = None,
445+
):
446+
raise NotImplementedError
447+
448+
@abstractmethod
449+
def sort_items_by_size(self, item_names: List[str], team_id: int, project_id: int, folder_id: int):
450+
raise NotImplementedError

src/superannotate/lib/core/usecases/annotations.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,8 +1069,6 @@ async def _download_big_annotation(self, item, export_path, folder_id):
10691069
item=item,
10701070
team_id=self._project.team_id,
10711071
project_id=self._project.id,
1072-
folder_id=folder_id,
1073-
reporter=self.reporter,
10741072
download_path=f"{export_path}{'/' + self._folder.name if not self._folder.is_root else ''}",
10751073
postfix=postfix,
10761074
callback=self._callback,

0 commit comments

Comments
 (0)