From eb76fd2e8a7207b7a41288ed7231177d6c7a7b1e Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 27 Jul 2023 19:53:16 -0700 Subject: fix(index): 0 progres manga entry --- src/due/routes/index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/due') diff --git a/src/due/routes/index.py b/src/due/routes/index.py index a08c498..df1b6da 100644 --- a/src/due/routes/index.py +++ b/src/due/routes/index.py @@ -99,7 +99,9 @@ def home(): media for media in releasing_manga if media["media"]["type"] == "MANGA" - and int(media["media"]["mediaListEntry"]["progress"]) + and int( + (media["media"]["mediaListEntry"] or {"progress": 0})["progress"] + ) >= 1 # Useful when testing ] (manga_html, manga_length) = manga_to_html( -- cgit v1.2.3