feat(api): include label in dataset data response
This commit is contained in:
parent
3da11564e2
commit
e07240784a
2 changed files with 2 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ class DataDTO(OutDTO):
|
|||
mime_type: str
|
||||
raw_data_location: str
|
||||
dataset_id: UUID
|
||||
label: Optional[str] = None
|
||||
|
||||
|
||||
class GraphNodeDTO(OutDTO):
|
||||
|
|
|
|||
|
|
@ -56,5 +56,6 @@ class Data(Base):
|
|||
"createdAt": self.created_at.isoformat(),
|
||||
"updatedAt": self.updated_at.isoformat() if self.updated_at else None,
|
||||
"nodeSet": self.node_set,
|
||||
"label": self.label,
|
||||
# "datasets": [dataset.to_json() for dataset in self.datasets]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue