Skip to content

Commit

Permalink
fix: LSDV-5247: Fix OOM during target storage export (HumanSignal#4334)
Browse files Browse the repository at this point in the history
  • Loading branch information
makseq authored and Jalal Tabatabaee committed Sep 19, 2023
1 parent 73af261 commit aad4b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion label_studio/io_storages/base_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def _get_serialized_data(self, annotation):
else:
serializer_class = load_func(settings.STORAGE_ANNOTATION_SERIALIZER)
# deprecated functionality - save only annotation
return serializer_class(annotation).data
return serializer_class(annotation, context={'project': self.project}).data

def save_annotation(self, annotation):
raise NotImplementedError
Expand Down

0 comments on commit aad4b4d

Please sign in to comment.