Browse Source

Fix the label method of readers

pull/1619/head
Hironsan 3 years ago
parent
commit
b49574bcf7
1 changed files with 1 additions and 6 deletions
  1. 7
      backend/api/views/upload/readers.py

7
backend/api/views/upload/readers.py

@ -57,12 +57,7 @@ class Record:
@property
def label(self):
return [
{
'text': label.name
} for label in self._label
if label.has_name() and label.name
]
return [label.dict() for label in self._label if label.has_name() and label.name]
class BaseReader(collections.abc.Iterable):

Loading…
Cancel
Save