From 07d445581058ddf06a768f30fd8f2ee0b9f3942d Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 17 May 2021 17:24:33 +0900 Subject: [PATCH] Update task --- backend/api/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/tasks.py b/backend/api/tasks.py index 9c1eb486..f97f9525 100644 --- a/backend/api/tasks.py +++ b/backend/api/tasks.py @@ -71,7 +71,7 @@ class DataFactory: mapping = {label.text: label.id for label in project.labels.all()} annotation = [example.annotation(mapping) for example in examples] for a, id in zip(annotation, ids): - append_field(a, document=id) + append_field(a, example=id) annotation = list(itertools.chain(*annotation)) for a in annotation: if 'label' in a: