From 2bbdd7c2a143374c413a293019b3415c21894043 Mon Sep 17 00:00:00 2001 From: Ajurna Date: Fri, 9 Apr 2021 15:16:37 +0100 Subject: [PATCH] add timeout to scroll to make it more consistant. --- comic/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comic/models.py b/comic/models.py index 3dcff90..a25d154 100644 --- a/comic/models.py +++ b/comic/models.py @@ -265,7 +265,7 @@ class ComicBook(models.Model): def process_comic_pages(cbx, book): with atomic(): 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( Comic=book, index=page_index,