Browse Source

Fix bug to pass annotation validation

pull/1310/head
Hironsan 3 years ago
parent
commit
aecf44296e
1 changed files with 1 additions and 1 deletions
  1. 2
      app/api/tasks.py

2
app/api/tasks.py

@ -54,7 +54,7 @@ def injest_data(user_id, project_id, filenames, format: str, **kwargs):
annotation = example.annotation(mapping)
append_field(annotation, document=data.id)
annotation_serializer = annotation_serializer_class(
data=list(itertools.chain(*annotation)),
data=annotation,
many=True
)
if not annotation_serializer.is_valid():

Loading…
Cancel
Save