Skip to content

Commit 53cb86c

Browse files
authored
Merge pull request #265 from superannotateai/friday
Fix response data for upload_annotations_from_folder_to_project
2 parents b1e6d38 + 334c7a2 commit 53cb86c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def __init__(
5555
self._client_s3_bucket = client_s3_bucket
5656
self._pre_annotation = pre_annotation
5757
self._templates = templates
58-
self._annotations_to_upload = None
59-
self._missing_annotations = None
58+
self._annotations_to_upload = []
59+
self._missing_annotations = []
6060
self._validators = validators
6161
self.missing_attribute_groups = set()
6262
self.missing_classes = set()
@@ -247,12 +247,12 @@ def execute(self):
247247
failed_annotations.append(annotation)
248248
self.reporter.update_progress()
249249

250-
self._response.data = (
251-
uploaded_annotations,
252-
failed_annotations,
253-
[annotation.path for annotation in self._missing_annotations],
254-
)
255250
self._log_report()
251+
self._response.data = (
252+
uploaded_annotations,
253+
failed_annotations,
254+
[annotation.path for annotation in self._missing_annotations],
255+
)
256256
return self._response
257257

258258

0 commit comments

Comments
 (0)