Added empty Post constructor
This commit is contained in:
@ -20,6 +20,10 @@ class Post:
|
||||
self._image: ImageFile | None = None
|
||||
|
||||
|
||||
def empty(id: int) -> "Post":
|
||||
return Post(id, 0, "00", [], b"")
|
||||
|
||||
|
||||
def get_thumbnail(self) -> ImageFile:
|
||||
if self._thumbnail is not None:
|
||||
return self._thumbnail
|
||||
|
||||
Reference in New Issue
Block a user