Skip to content

Commit e95b085

Browse files
committed
removing preettyfication, now the annotations are ugly
1 parent 08184dc commit e95b085

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -774,21 +774,6 @@ def validate_item_names(self):
774774

775775
self._item_names = [item.name for item in self._images.get_all(condition)]
776776

777-
def _prettify_annotations(self, annotations: List[dict]):
778-
if self._item_names_provided:
779-
try:
780-
data = []
781-
for annotation in annotations:
782-
data.append(
783-
(
784-
self._item_names.index(annotation["metadata"]["name"]),
785-
annotation,
786-
)
787-
)
788-
return [i[1] for i in sorted(data, key=lambda x: x[0])]
789-
except KeyError:
790-
raise AppException("Broken data.")
791-
return annotations
792777

793778
async def get_big_annotation(
794779
self,
@@ -873,7 +858,6 @@ def execute(self):
873858
self.reporter.log_warning(
874859
f"Could not find annotations for {items_count - received_items_count}/{items_count} items."
875860
)
876-
self._response.data = self._prettify_annotations(annotations)
877861
self._response.data = annotations
878862
return self._response
879863

0 commit comments

Comments
 (0)