mirror of
https://github.com/ajurna/cbwebreader.git
synced 2026-11-02 10:36:55 +00:00
Improve type hinting for ComicBook in generate_thumbnail method
This commit is contained in:
1 parent
67b2d9756a
commit
91729f91dc
1 file changed
+1
-1
+1
-1
@@ -64,7 +64,7 @@ class Directory(models.Model):
|
|||||||
return 'Directory'
|
return 'Directory'
|
||||||
|
|
||||||
def generate_thumbnail(self) -> None:
|
def generate_thumbnail(self) -> None:
|
||||||
book: ComicBook = ComicBook.objects.filter(directory=self).order_by('file_name').first()
|
book: ComicBook|None = ComicBook.objects.filter(directory=self).order_by('file_name').first()
|
||||||
if not book:
|
if not book:
|
||||||
return
|
return
|
||||||
if not book.thumbnail:
|
if not book.thumbnail:
|
||||||
|
|||||||
Reference in new issue
Block a user