File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/superannotate/lib/core/usecases Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,13 @@ def annotations_to_upload(self):
137137 self ._annotations_to_upload = annotations_to_upload
138138 return self ._annotations_to_upload
139139
140+
141+ @property
142+ def missing_annotations (self ):
143+ if not self ._missing_annotations :
144+ return []
145+ return self ._missing_annotations
146+
140147 def get_annotation_upload_data (
141148 self , image_ids : List [int ]
142149 ) -> UploadAnnotationAuthData :
@@ -224,7 +231,7 @@ def _log_report(self):
224231 if self .reporter .custom_messages .get ("invalid_jsons" ):
225232 logger .warning (
226233 f"Couldn't validate { len (self .reporter .custom_messages ['invalid_jsons' ])} /"
227- f"{ len (self ._annotations_to_upload + self ._missing_annotations )} annotations from { self ._folder_path } . "
234+ f"{ len (self .annotations_to_upload + self .missing_annotations )} annotations from { self ._folder_path } . "
228235 f"Use the validate_annotations function to discover the possible reason(s) for "
229236 f"which an annotation is invalid."
230237 )
@@ -284,7 +291,7 @@ def execute(self):
284291 self ._response .data = (
285292 uploaded_annotations ,
286293 failed_annotations ,
287- [annotation .path for annotation in self ._missing_annotations ],
294+ [annotation .path for annotation in self .missing_annotations ],
288295 )
289296 return self ._response
290297
You can’t perform that action at this time.
0 commit comments