Browse Source

Update Record

pull/1619/head
Hironsan 2 years ago
parent
commit
756404d2a2
1 changed files with 13 additions and 0 deletions
  1. 13
      backend/api/views/upload/readers.py

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

@ -21,6 +21,19 @@ class Record:
def __str__(self):
return f'{self._data}\t{self._label}'
@property
def data(self):
return self._data.dict()
@property
def label(self):
return [
{
'text': label.name
} for label in self._label
if label.has_name() and label.name
]
class BaseReader(collections.abc.Iterable):

Loading…
Cancel
Save