File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
src/superannotate/lib/core/usecases Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments