update
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
from datetime import datetime
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
@@ -17,7 +15,6 @@ class VideoResponse(BaseModel):
|
||||
thumbnail_url: str
|
||||
youtube_url: str
|
||||
is_downloaded: bool
|
||||
created_at: datetime
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
@@ -31,5 +28,4 @@ class VideoResponse(BaseModel):
|
||||
thumbnail_url=video.thumbnail_url,
|
||||
youtube_url=video.youtube_url,
|
||||
is_downloaded=video.file_path is not None,
|
||||
created_at=video.created_at,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user