Browse Source

Specify project when retrieving labels

pull/1723/head
youichiro 3 years ago
parent
commit
5de30a0774
1 changed files with 1 additions and 1 deletions
  1. 2
      backend/data_import/pipeline/writers.py

2
backend/data_import/pipeline/writers.py

@ -70,7 +70,7 @@ class Examples:
mapping = {}
label_types: List[Type[LabelType]] = [CategoryType, SpanType]
for model in label_types:
for label in model.objects.all():
for label in model.objects.filter(project=project):
mapping[label.text] = label
annotations = list(
itertools.chain.from_iterable(

Loading…
Cancel
Save