mirror of
https://github.com/janeczku/calibre-web
synced 2025-11-12 05:13:01 +00:00
Fixes for sqlalachemy2
This commit is contained in:
@@ -138,7 +138,7 @@ class TaskGenerateCoverThumbnails(CalibreTask):
|
||||
|
||||
# Replace outdated or missing thumbnails
|
||||
for thumbnail in book_cover_thumbnails:
|
||||
if book.last_modified > thumbnail.generated_at:
|
||||
if book.last_modified.replace(tzinfo=None) > thumbnail.generated_at:
|
||||
generated += 1
|
||||
self.update_book_cover_thumbnail(book, thumbnail)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user