add timeout to scroll to make it more consistant.

This commit is contained in:
2021-04-09 15:16:37 +01:00
parent 0138df933e
commit 2bbdd7c2a1

View File

@@ -265,7 +265,7 @@ class ComicBook(models.Model):
def process_comic_pages(cbx, book): def process_comic_pages(cbx, book):
with atomic(): with atomic():
page_index = 0 page_index = 0
for page_file_name in sorted([str(x) for x in cbx.namelist()], key=str.lower): for page_file_name in sorted([str(x) for x in cbx.namelist() if not x.endswith('/')], key=str.lower):
page = ComicPage( page = ComicPage(
Comic=book, Comic=book,
index=page_index, index=page_index,