Skip to content

Commit

Permalink
added Dataest.id optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ervandagadzhanyan committed Sep 3, 2024
1 parent 74aa22c commit fe8aad8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions assets/assets/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ class MinioObjects(BaseModel):

class Dataset(BaseModel):
name: str


class DatasetObj(Dataset):
id: int
id: Optional[int]


class Bucket(Dataset):
Expand Down Expand Up @@ -59,7 +56,7 @@ class FileResponse(BaseModel):
last_modified: datetime.datetime
status: FileProcessingStatus
path: str
datasets: List[DatasetObj]
datasets: List[Dataset]

class Config:
orm_mode = True
Expand Down

0 comments on commit fe8aad8

Please sign in to comment.